From ddd2c885e6de4305569907c3f451efed5d8b4ae4 Mon Sep 17 00:00:00 2001 From: silvadom Date: Wed, 16 Oct 2024 18:28:28 +0400 Subject: [PATCH] update cmake build files --- samples/sources/processors/processor.cmake | 4 ++-- samples/sources/strategies/strategy.cmake | 8 ++++++++ samples/sources/tests/modules/CMakeLists.txt | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/samples/sources/processors/processor.cmake b/samples/sources/processors/processor.cmake index aa45b08..2a9c22f 100644 --- a/samples/sources/processors/processor.cmake +++ b/samples/sources/processors/processor.cmake @@ -19,10 +19,10 @@ macro( add_processor_module name) if(WIN32) set(LIBRARY_DIRS ${APP_DIR}/lib/win64 ${APP_DIR}/bin) - SET(LIBS g3log jsoncpp arrow arrow_dataset arrow_acero) + SET(LIBS stelgic.lib g3log jsoncpp arrow arrow_dataset arrow_acero) elseif(UNIX) set(LIBRARY_DIRS ${APP_DIR}/lib/unix ${APP_DIR}/bin) - SET(LIBS m stdc++ stelgic g3log arrow arrow_dataset jsoncpp dl uuid) + SET(LIBS m stdc++ stelgic g3log arrow arrow_dataset arrow_acero jsoncpp dl uuid) endif() file(GLOB TARGET_SRC diff --git a/samples/sources/strategies/strategy.cmake b/samples/sources/strategies/strategy.cmake index 259deae..3eea27f 100644 --- a/samples/sources/strategies/strategy.cmake +++ b/samples/sources/strategies/strategy.cmake @@ -16,6 +16,14 @@ macro( add_strategy_module name) ${APP_DIR}/include/third_party/stduuid/include ) + if(WIN32) + set(LIBRARY_DIRS ${APP_DIR}/lib/win64 ${APP_DIR}/bin) + SET(LIBS stelgic.lib g3log jsoncpp arrow arrow_dataset arrow_acero) + elseif(UNIX) + set(LIBRARY_DIRS ${APP_DIR}/lib/unix ${APP_DIR}/bin) + SET(LIBS m stdc++ stelgic.a g3log jsoncpp arrow arrow_dataset arrow_acero pthread dl uuid) + endif() + file(GLOB TARGET_SRC ${CMAKE_CURRENT_SOURCE_DIR}/${name}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/${name}/*.cpp diff --git a/samples/sources/tests/modules/CMakeLists.txt b/samples/sources/tests/modules/CMakeLists.txt index 29f58ab..e1bb03c 100644 --- a/samples/sources/tests/modules/CMakeLists.txt +++ b/samples/sources/tests/modules/CMakeLists.txt @@ -12,7 +12,7 @@ set(INCLUDE_DIRS if(WIN32) set(LIBRARY_DIRS ${APP_DIR}/lib/win64 ${APP_DIR}/bin) - SET(LIBS stelgic g3log cpr arrow arrow_dataset jsoncpp) + SET(LIBS stelgic g3log arrow arrow_dataset jsoncpp) elseif(UNIX) set(LIBRARY_DIRS ${APP_DIR}/lib/unix ${APP_DIR}/bin) SET(LIBS m stdc++ stelgic g3log curl cpr ssl crypto jsoncpp dl uuid)