From 182be82ac275797b4b6fbc1c249ea595b68e6fbc Mon Sep 17 00:00:00 2001 From: Fabian Posch Date: Fri, 3 Jan 2025 12:52:56 +0100 Subject: [PATCH] fix weird build issues --- CMakeLists.txt | 19 ------------------- src/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a02356a..7b38a49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,25 +75,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin) set(CMAKE_INSTALL_PREFIX $ENV{ACT_HOME} CACHE PATH "installation path" FORCE) add_subdirectory(src) - -# Link the needed libraries into it -target_link_libraries( - ${PROJECT_NAME} - act-cluster-lib - actsim-agent-lib -) - -# Add the Postgresql library -target_link_libraries( - ${PROJECT_NAME} - -lpqxx -lpq -) - -# specify install targets -install( - TARGETS actsim-cluster-agent - DESTINATION bin -) # We don't provide a library #install( diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fe37a69..ff39f5b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,3 +17,17 @@ add_executable( ${PROJECT_NAME} ${proj_SRC} ) + +# Link the needed libraries into it +target_link_libraries( + ${PROJECT_NAME} + act-cluster-lib + ${actsim_agent_lib} + -lpqxx -lpq +) + +# specify install targets +install( + TARGETS actsim-cluster-agent + DESTINATION bin +)