- project(bell_example)
- cmake_minimum_required(VERSION 3.18)
- set(CMAKE_CXX_STANDARD 20)
- set(CMAKE_BUILD_TYPE Debug)
- set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
- set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
- add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_BINARY_DIR}/bell)
- file(GLOB SOURCES "*.cpp")
- include_directories(".")
- add_executable(bell_example ${SOURCES})
- target_link_libraries(bell_example bell ${CMAKE_DL_LIBS} ${THINGS_TO_LINK})
- get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
|