CMake autodetecting boost.

Added KRDataBlock to CMakeLists
This commit is contained in:
2017-10-30 20:58:14 -07:00
parent ef762288f4
commit 4d85c2e3be
11 changed files with 154 additions and 143 deletions

View File

@@ -71,6 +71,15 @@ PROPERTIES
OUTPUT_NAME kraken
)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.65.1)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(kraken ${Boost_LIBRARIES})
endif()
# add_custom_target(package
# COMMENT "Compressing..."
# WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/archive"