File tree Expand file tree Collapse file tree 5 files changed +338
-12
lines changed
sprint4/problems/leave_game/solution Expand file tree Collapse file tree 5 files changed +338
-12
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,10 @@ project(game_server CXX)
4
4
set (CMAKE_CXX_STANDARD 20 )
5
5
set (CXX_STANDARD_REQUIRED ON )
6
6
7
- include (${CMAKE_BINARY_DIR} /conanbuildinfo_multi.cmake )
8
- conan_basic_setup (TARGETS )
7
+ # include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake)
8
+ # conan_basic_setup(TARGETS)
9
9
10
- # Указываем путь к заголовкам
11
- # include_directories(/usr/include/pqxx)
12
-
13
- # # Ищем библиотеку
14
- # find_library(PQXX_LIB pqxx REQUIRED HINTS /usr/lib/aarch64-linux-gnu)
10
+ find_package (Boost 1.78.0 REQUIRED system serialization log log_setup program_options )
15
11
16
12
find_package (PkgConfig REQUIRED )
17
13
pkg_check_modules (PQXX REQUIRED libpqxx )
@@ -71,9 +67,12 @@ add_executable(game_server
71
67
src/database_manager.cpp
72
68
)
73
69
74
- target_link_libraries (game_server
75
- CONAN_PKG::boost
76
- # ${PQXX_LIB}
70
+ target_link_libraries (game_server
71
+ ${Boost_include_dir}
72
+ Boost::serialization
73
+ Boost::log
74
+ Boost::log_setup
75
+ Boost::program_options
77
76
${PQXX_LIBRARIES}
78
77
${PQ_LIB}
79
- )
78
+ )
Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ cmake_multi
6
6
7
7
[options]
8
8
boost:header_only=True
9
+ boost:without_log=False
10
+ boost:without_serialization=False
You can’t perform that action at this time.
0 commit comments