define_module("GUIConsole") MESSAGE( STATUS "BOOST_ROOT = ${CONAN_BOOST_ROOT}") set(BOOST_ROOT ${CONAN_BOOST_ROOT}) set(Boost_DEBUG ON) set(Boost_USE_STATIC_LIBS ON) if (MSVC) else() set(Boost_NO_SYSTEM_PATHS ON) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME ON) #add_definitions(-DBOOST_STACKTRACE_LINK) #add_definitions(-DBOOST_STACKTRACE_USE_ADDR2LINE) add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY) endif() find_package(Boost COMPONENTS REQUIRED) if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) MESSAGE( STATUS "Boost_INCLUDE_DIRS = ${Boost_INCLUDE_DIRS}") MESSAGE( STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") MESSAGE( STATUS "Boost_LIB_VERSION = ${Boost_LIB_VERSION}") endif() if(MSVC) set(${MODULE_PREFIX}_SRCS mod_guiconsole.cpp guiconsole_define.cpp ${ThirdPartyHeadRoot}/modp_b64/modp_b64.cc ) else() set(${MODULE_PREFIX}_SRCS mod_guiconsole.cpp guiconsole_define.cpp ${ThirdPartyHeadRoot}/modp_b64/modp_b64.cc linux_system_monitor/linux_parser.cpp linux_system_monitor/process.cpp linux_system_monitor/processor.cpp linux_system_monitor/system.cpp ) endif(MSVC) set(MOD_VERSION_STRING "0.0.1-dev1") add_module_libraries(${MODULE_PREFIX} ${MODULE_NAME} ${MOD_VERSION_STRING}) MESSAGE( STATUS "CONAN_INCLUDE_DIRS_JSONCPP = ${CONAN_INCLUDE_DIRS_JSONCPP}") target_include_directories(${MODULE_NAME} PRIVATE ${ThirdPartyHeadRoot}/modp_b64 ) target_link_directories(${MODULE_NAME} PRIVATE ${CONAN_LIB_DIRS_JSONCPP} ${CONAN_LIB_DIRS_BOOST} linux_system_monitor ) # 添加实体需要依赖的其他共享库(包括系统库) set(${MODULE_PREFIX}_LIBS ${MODULE_BASE_ALL_LIBS} ${CONAN_PKG_LIBS_JSONCPP}) list(APPEND ${MODULE_PREFIX}_LIBS libpublicFun) target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} ${Boost_LIBRARIES}) deploy_module(${MODULE_PREFIX} ${MODULE_NAME})