2021-03-05 15:39:47 +08:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
project(bserv)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
|
|
|
2021-07-13 19:53:10 +08:00
|
|
|
add_executable(bserv main.cpp)
|
2021-03-05 15:39:47 +08:00
|
|
|
target_link_libraries(bserv
|
|
|
|
pthread
|
|
|
|
boost_thread
|
|
|
|
boost_log
|
|
|
|
boost_log_setup
|
|
|
|
pqxx
|
|
|
|
pq
|
|
|
|
cryptopp)
|