15 lines
446 B
CMake
15 lines
446 B
CMake
project(pb_2 CXX)
|
|
|
|
find_package(Boost REQUIRED)
|
|
|
|
add_library(pb_2 STATIC problem_2.cpp problem_2.hpp)
|
|
|
|
target_include_directories(pb_2 PRIVATE ${Boost_INCLUDE_DIR})
|
|
|
|
target_compile_definitions(pb_2 PUBLIC $<$<AND:$<CONFIG:Debug>,$<STREQUAL:$<CXX_COMPILER_ID>,GNU>>:_GLIBCXX_DEBUG>)
|
|
|
|
target_compile_options(pb_2 PUBLIC ${COMPILE_FLAGS})
|
|
|
|
target_link_options(pb_2 PUBLIC ${LINKER_OPTIONS})
|
|
|
|
target_link_libraries(pb_2 PUBLIC ${LINKER_FLAGS} common) |