fix weird build issues
This commit is contained in:
parent
5b3b3b9810
commit
182be82ac2
2 changed files with 14 additions and 19 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue