CMakeLists.txt 577 B

1234567891011121314
  1. project(bell_example)
  2. cmake_minimum_required(VERSION 3.18)
  3. set(CMAKE_CXX_STANDARD 20)
  4. set(CMAKE_BUILD_TYPE Debug)
  5. set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
  6. set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
  7. add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_BINARY_DIR}/bell)
  8. file(GLOB SOURCES "*.cpp")
  9. include_directories(".")
  10. add_executable(bell_example ${SOURCES})
  11. target_link_libraries(bell_example bell ${CMAKE_DL_LIBS} ${THINGS_TO_LINK})
  12. get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)