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
|
-Wwrite-strings
|
||||||
-Wformat-security
|
-Wformat-security
|
||||||
-Wundef)
|
-Wundef)
|
||||||
add_compile_options(-O2)
|
add_compile_options(-O2 -fPIC)
|
||||||
|
|
||||||
include_directories(./)
|
include_directories(./)
|
||||||
|
|
||||||
|
|
@ -75,12 +75,8 @@ add_subdirectory(src)
|
||||||
# Link the needed libraries into it
|
# Link the needed libraries into it
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
# act-deploy-commands
|
actsim-agent-db-lib
|
||||||
act-deploy-db-lib
|
|
||||||
actsim-agent-lib
|
actsim-agent-lib
|
||||||
# act-deploy-pipeline-modules-lib
|
|
||||||
# act-deploy-test-gen-modules-lib
|
|
||||||
# yaml-cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add the Postgresql library
|
# Add the Postgresql library
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
include_directories(../../include)
|
||||||
include_directories(../../include/db_lib)
|
include_directories(../../include/db_lib)
|
||||||
include_directories(../../include/actsim_agent)
|
include_directories(../../include/actsim_agent)
|
||||||
|
|
||||||
|
|
@ -7,7 +8,12 @@ file(
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
actsim-agent-lib
|
actsim-agent-lib
|
||||||
SHARED
|
SHARED
|
||||||
${actsim_agent_SRC}
|
${actsim_agent_SRC}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(
|
||||||
|
actsim-agent-lib
|
||||||
|
actsim-agent-db-lib
|
||||||
)
|
)
|
||||||
Loading…
Reference in a new issue