build pqxx with lib
This commit is contained in:
parent
e11ae36514
commit
6c7ca2fec4
3 changed files with 7 additions and 1 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "third-party/libpqxx"]
|
||||||
|
path = third-party/libpqxx
|
||||||
|
url = https://github.com/jtv/libpqxx
|
||||||
|
|
@ -69,6 +69,8 @@ set(CMAKE_INSTALL_PREFIX $ENV{ACT_HOME} CACHE PATH "installation path" FORCE)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
add_subdirectory(third-party/libpqxx build-pqxx EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
# Link the needed libraries into it
|
# Link the needed libraries into it
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
|
|
@ -79,7 +81,7 @@ target_link_libraries(
|
||||||
# Add the Postgresql library
|
# Add the Postgresql library
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
-lpqxx -lpq
|
pqxx
|
||||||
)
|
)
|
||||||
|
|
||||||
# specify install targets
|
# specify install targets
|
||||||
|
|
|
||||||
1
third-party/libpqxx
vendored
Submodule
1
third-party/libpqxx
vendored
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6af956bb48167ed1e71cc0f0c2d8c8fdc99151a3
|
||||||
Loading…
Reference in a new issue