23 lines
641 B
CMake
23 lines
641 B
CMake
|
|
#set(CMAKE_CXX_STANDARD 20)
|
|
#set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
|
|
|
|
#include(cmake/FindSphinx.cmake)
|
|
|
|
add_subdirectory(hello)
|
|
add_subdirectory(ex1)
|
|
add_subdirectory(ex2)
|
|
add_subdirectory(ex3)
|
|
add_subdirectory(ex4)
|
|
|
|
# ----------------------------------------------------------------
|
|
# make standard directories for std:: includes explicit
|
|
# so that
|
|
# (1) they appear in compile_commands.json.
|
|
# (2) clangd (run from emacs lsp-mode) can find them
|
|
#
|
|
if(CMAKE_EXPORT_COMPILE_COMMANDS)
|
|
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
|
|
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
|
|
endif()
|