@@ -13,6 +13,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") # Be hard-liner
########## DEPENDENCIES ##########
# Find boost
find_package(Boost 1.65 REQUIRED COMPONENTS log log_setup)# Logging component need to be explicitely specified :(
add_definitions(-DBOOST_LOG_DYN_LINK=1)# To avoid linker error on DEBIAN (cf: https://stackoverflow.com/questions/23137637/linker-error-while-linking-boost-log-tutorial-undefined-references)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
# Find wxwidget
set(LOCAL_WX "${CMAKE_CURRENT_BINARY_DIR}/WX")
if(EXISTS "${LOCAL_WX}")
message(STATUS "Using local WxWidgets ${LOCAL_WX}")
...
...
@@ -22,16 +27,10 @@ if(EXISTS "${LOCAL_WX}")
else()
message(STATUS "Note that you can use your own local WxWidgets project by placing it into ${LOCAL_WX}. Thus, WxWidgets should be compiled in ${LOCAL_WX}/build.")
endif()
find_package(Boost 1.65 REQUIRED COMPONENTS log log_setup)# Logging component need to be explicitely specified :(
add_definitions(-DBOOST_LOG_DYN_LINK=1)# To avoid linker error on DEBIAN (cf: https://stackoverflow.com/questions/23137637/linker-error-while-linking-boost-log-tutorial-undefined-references)