split into src and include folder
This commit is contained in:
parent
df559929b0
commit
46554a7e33
8 changed files with 9 additions and 5 deletions
|
@ -5,15 +5,19 @@ set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -lreadline")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -lreadline")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${PROJECT_SOURCE_DIR}/include
|
||||||
|
)
|
||||||
|
|
||||||
find_package(cpr)
|
find_package(cpr)
|
||||||
FIND_PACKAGE( Boost 1.81 COMPONENTS program_options REQUIRED )
|
find_package(Boost 1.81 COMPONENTS program_options REQUIRED)
|
||||||
|
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
|
include_directories(${Boost_INCLUDE_DIR})
|
||||||
|
|
||||||
add_executable(dynamic_program main.cpp game_state.h cli_interface.cpp)
|
add_executable(endgame-analyzer src/main.cpp src/cli_interface.cpp)
|
||||||
|
|
||||||
target_link_libraries(dynamic_program cpr)
|
target_link_libraries(endgame-analyzer cpr)
|
||||||
TARGET_LINK_LIBRARIES(dynamic_program Boost::program_options )
|
target_link_libraries(endgame-analyzer Boost::program_options)
|
||||||
|
|
||||||
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")
|
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")
|
||||||
|
|
Loading…
Reference in a new issue