fix weird build issues

This commit is contained in:
Fabian Posch 2025-01-03 12:52:56 +01:00
parent 5b3b3b9810
commit 182be82ac2
2 changed files with 14 additions and 19 deletions

View file

@ -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) set(CMAKE_INSTALL_PREFIX $ENV{ACT_HOME} CACHE PATH "installation path" FORCE)
add_subdirectory(src) 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 # We don't provide a library
#install( #install(

View file

@ -17,3 +17,17 @@ add_executable(
${PROJECT_NAME} ${PROJECT_NAME}
${proj_SRC} ${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
)