add cmakelists
This commit is contained in:
parent
3b993030ea
commit
2a311bb736
1 changed files with 18 additions and 0 deletions
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(dynamic_program CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror")
|
||||
|
||||
find_package(cpr)
|
||||
FIND_PACKAGE( Boost 1.81 COMPONENTS program_options REQUIRED )
|
||||
|
||||
include_directories(.)
|
||||
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
|
||||
|
||||
add_executable(dynamic_program main.cpp game_state.h)
|
||||
|
||||
target_link_libraries(dynamic_program cpr)
|
||||
TARGET_LINK_LIBRARIES(dynamic_program Boost::program_options )
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")
|
Loading…
Reference in a new issue