2021-10-21 10:13:09 +08:00
|
|
|
add_library(
|
|
|
|
bserv
|
|
|
|
|
|
|
|
pch.cpp
|
|
|
|
bserv.cpp
|
|
|
|
client.cpp
|
|
|
|
database.cpp
|
|
|
|
session.cpp
|
|
|
|
utils.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(
|
|
|
|
bserv PUBLIC
|
|
|
|
|
2021-11-16 17:05:17 +08:00
|
|
|
../dependencies
|
|
|
|
../dependencies/libpqxx/include
|
2021-10-21 10:13:09 +08:00
|
|
|
include
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
bserv PUBLIC
|
|
|
|
|
|
|
|
pthread
|
|
|
|
boost_thread
|
|
|
|
boost_context
|
|
|
|
boost_coroutine
|
|
|
|
boost_system
|
|
|
|
boost_filesystem
|
|
|
|
boost_log
|
|
|
|
boost_log_setup
|
|
|
|
boost_json
|
2021-11-16 17:05:17 +08:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/cryptopp/libcryptopp.a"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/libpqxx/src/.libs/libpqxx.a"
|
2021-10-21 10:13:09 +08:00
|
|
|
pq
|
|
|
|
)
|