|
@@ -16,15 +16,15 @@ endif()
|
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_REENTRANT -fPIC -Wall -Werror")
|
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_REENTRANT -fPIC -Wall -Werror")
|
|
|
|
|
|
# ---[ Options
|
|
# ---[ Options
|
|
-option(build_Expel "build module Expel" OFF)
|
|
|
|
-option(build_HttpClient "build module HttpClient" OFF)
|
|
|
|
-option(build_InfineFilter "build module InfineFilter" OFF)
|
|
|
|
-option(build_Monitor "build module Monitor" OFF)
|
|
|
|
-option(build_TCPClient "build module TCPClient" OFF)
|
|
|
|
-option(build_config "build module config" OFF)
|
|
|
|
-option(build_HttpServer "build module HttpServer" OFF)
|
|
|
|
-option(build_Audit "build module Audit" OFF)
|
|
|
|
-option(build_kafka "build module kafka" OFF)
|
|
|
|
|
|
+option(build_Expel "build module Expel" ON)
|
|
|
|
+option(build_HttpClient "build module HttpClient" ON)
|
|
|
|
+option(build_InfineFilter "build module InfineFilter" ON)
|
|
|
|
+option(build_Monitor "build module Monitor" ON)
|
|
|
|
+option(build_TCPClient "build module TCPClient" ON)
|
|
|
|
+option(build_config "build module config" ON)
|
|
|
|
+option(build_HttpServer "build module HttpServer" ON)
|
|
|
|
+option(build_Audit "build module Audit" ON)
|
|
|
|
+option(build_kafka "build module kafka" ON)
|
|
option(build_Hepu "build module Hepu" ON)
|
|
option(build_Hepu "build module Hepu" ON)
|
|
|
|
|
|
# ---[ 3rdparty
|
|
# ---[ 3rdparty
|
|
@@ -51,47 +51,47 @@ set(srcs "")
|
|
|
|
|
|
if(build_Expel)
|
|
if(build_Expel)
|
|
list(APPEND module_list Expel)
|
|
list(APPEND module_list Expel)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/Expel/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/Expel/src)
|
|
install(DIRECTORY Expel/include/ DESTINATION include)
|
|
install(DIRECTORY Expel/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_InfineFilter)
|
|
if(build_InfineFilter)
|
|
list(APPEND module_list InfineFilter)
|
|
list(APPEND module_list InfineFilter)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/InfineFilter/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/InfineFilter/src)
|
|
install(DIRECTORY InfineFilter/include/ DESTINATION include)
|
|
install(DIRECTORY InfineFilter/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_Monitor)
|
|
if(build_Monitor)
|
|
list(APPEND module_list Monitor)
|
|
list(APPEND module_list Monitor)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/Monitor/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/Monitor/src)
|
|
install(DIRECTORY Monitor/include/ DESTINATION include)
|
|
install(DIRECTORY Monitor/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_TCPClient)
|
|
if(build_TCPClient)
|
|
list(APPEND module_list TCPClient)
|
|
list(APPEND module_list TCPClient)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/TCPClient/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/TCPClient/src)
|
|
install(DIRECTORY TCPClient/include/ DESTINATION include)
|
|
install(DIRECTORY TCPClient/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_config)
|
|
if(build_config)
|
|
list(APPEND module_list config)
|
|
list(APPEND module_list config)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/config/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/config/src)
|
|
install(DIRECTORY config/include/ DESTINATION include)
|
|
install(DIRECTORY config/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_HttpClient)
|
|
if(build_HttpClient)
|
|
list(APPEND module_list HttpClient)
|
|
list(APPEND module_list HttpClient)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/HttpClient/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/HttpClient/src)
|
|
install(DIRECTORY HttpClient/include/ DESTINATION include)
|
|
install(DIRECTORY HttpClient/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_HttpServer)
|
|
if(build_HttpServer)
|
|
list(APPEND module_list HttpServer)
|
|
list(APPEND module_list HttpServer)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/HttpServer/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/HttpServer/src)
|
|
install(DIRECTORY HttpServer/include/ DESTINATION include)
|
|
install(DIRECTORY HttpServer/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_Hepu)
|
|
if(build_Hepu)
|
|
list(APPEND module_list Hepu)
|
|
list(APPEND module_list Hepu)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/Hepu/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/Hepu/src)
|
|
install(DIRECTORY Hepu/include/ DESTINATION include)
|
|
install(DIRECTORY Hepu/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
if(build_Audit)
|
|
if(build_Audit)
|
|
list(APPEND module_list Audit)
|
|
list(APPEND module_list Audit)
|
|
- include_directories(${PROJECT_SOURCE_DIR}/modules/Audit/src)
|
|
|
|
|
|
+ #include_directories(${PROJECT_SOURCE_DIR}/modules/Audit/src)
|
|
install(DIRECTORY Audit/include/ DESTINATION include)
|
|
install(DIRECTORY Audit/include/ DESTINATION include)
|
|
endif()
|
|
endif()
|
|
|
|
|