compile main tool functionality as shared library
This commit is contained in:
parent
28bb858d3b
commit
9809021551
2 changed files with 9 additions and 7 deletions
|
|
@ -45,7 +45,7 @@ add_compile_options(
|
|||
-Wwrite-strings
|
||||
-Wformat-security
|
||||
-Wundef)
|
||||
add_compile_options(-O2)
|
||||
add_compile_options(-O2 -fPIC)
|
||||
|
||||
include_directories(./)
|
||||
|
||||
|
|
@ -75,12 +75,8 @@ add_subdirectory(src)
|
|||
# Link the needed libraries into it
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}
|
||||
# act-deploy-commands
|
||||
act-deploy-db-lib
|
||||
actsim-agent-db-lib
|
||||
actsim-agent-lib
|
||||
# act-deploy-pipeline-modules-lib
|
||||
# act-deploy-test-gen-modules-lib
|
||||
# yaml-cpp
|
||||
)
|
||||
|
||||
# Add the Postgresql library
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
include_directories(../../include)
|
||||
include_directories(../../include/db_lib)
|
||||
include_directories(../../include/actsim_agent)
|
||||
|
||||
|
|
@ -7,7 +8,12 @@ file(
|
|||
)
|
||||
|
||||
add_library(
|
||||
actsim-agent-lib
|
||||
actsim-agent-lib
|
||||
SHARED
|
||||
${actsim_agent_SRC}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
actsim-agent-lib
|
||||
actsim-agent-db-lib
|
||||
)
|
||||
Loading…
Reference in a new issue