db-lab1/CMakeLists.txt

20 lines
385 B
CMake
Raw Normal View History

2021-03-05 15:39:47 +08:00
cmake_minimum_required(VERSION 3.10)
project(bserv_main)
2021-03-05 15:39:47 +08:00
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")
add_subdirectory(bserv)
add_executable(main main.cpp)
target_link_libraries(main bserv)