@@ -3,38 +3,20 @@ option(PL_HELIX "Build the Helix plugin" ON)
33if (PL_HELIX OR BUILD_ALL_PLUGINS)
44
55 # Dependencies
6- find_package (absl REQUIRED )
7- find_package (hiredis REQUIRED )
8- find_package (Libevent REQUIRED )
9- find_package (Protobuf CONFIG REQUIRED )
6+ add_subdirectory (deps )
107 find_package (Qt5 REQUIRED COMPONENTS Core Widgets )
118
129 # Include-What-You-Use (optional)
1310 if (IWYU)
1411 set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE "include-what-you-use" )
12+ message (STATUS "include-what-you-use turned ON" )
1513 else ()
1614 message (STATUS "include-what-you-use turned OFF" )
1715 endif ()
1816
19- # --- Protocol buffer library ---
20- set (PROTO_SRC_DIR "${CMAKE_CURRENT_LIST_DIR} " )
21- set (PROTO_OUT_DIR "${PROTO_SRC_DIR} /protobuf/protocol" )
22- file (MAKE_DIRECTORY "${PROTO_OUT_DIR} " )
23-
24- # Define protocol library
25- add_library (protocol SHARED "${PROTO_SRC_DIR} /helix.proto" )
26- target_include_directories (protocol PUBLIC "${PROTO_OUT_DIR} " )
27- target_link_libraries (protocol PUBLIC protobuf::libprotobuf )
28-
29- protobuf_generate (
30- TARGET protocol
31- IMPORT_DIRS "${Protobuf_INCLUDE_DIRS} "
32- PROTOC_OUT_DIR "${PROTO_OUT_DIR} "
33- )
34-
3517 # --- Source Collection ---
36- file (GLOB_RECURSE HELIX_INC "${CMAKE_CURRENT_SOURCE_DIR} /include/*.h" " ${PROTO_OUT_DIR} /*.h" )
37- file (GLOB_RECURSE HELIX_SRC "${CMAKE_CURRENT_SOURCE_DIR} /src/*.cc" " ${PROTO_OUT_DIR} /*.cc" )
18+ file (GLOB_RECURSE HELIX_INC "${CMAKE_CURRENT_SOURCE_DIR} /include/*.h" )
19+ file (GLOB_RECURSE HELIX_SRC "${CMAKE_CURRENT_SOURCE_DIR} /src/*.cc" )
3820 file (GLOB_RECURSE HELIX_PYTHON_SRC "${CMAKE_CURRENT_SOURCE_DIR} /python/*.cc" )
3921
4022 # --- Plugin Target ---
@@ -48,7 +30,6 @@ if(PL_HELIX OR BUILD_ALL_PLUGINS)
4830 # --- Includes ---
4931 target_include_directories (helix PRIVATE
5032 "${PROJECT_SOURCE_DIR} /plugins/gui/include"
51- "${CMAKE_CURRENT_SOURCE_DIR} /protobuf"
5233 )
5334
5435 # --- Link Libraries ---
@@ -59,10 +40,6 @@ if(PL_HELIX OR BUILD_ALL_PLUGINS)
5940 event
6041 event_pthreads
6142 hiredis
62- protocol
63- absl::log_internal_check_op
64- absl::log
65- absl::strings
6643 gui
6744 )
6845
0 commit comments