-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
26 lines (19 loc) · 953 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required (VERSION 3.2)
project(pathplanning)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
find_package(SFML 2 COMPONENTS system window graphics REQUIRED)
include_directories(include ${SFML_INCLUDE_DIR})
aux_source_directory(src sources)
aux_source_directory(src/Gui sources_gui)
aux_source_directory(tests sources_test)
option(BUILD_TESTS "Build tests. Requires catch single include in include folder" OFF)
add_executable(gui ${sources} ${sources_gui} gui/main.cpp)
set_target_properties(gui PROPERTIES CXX_STANDARD 17)
target_link_libraries(gui ${SFML_LIBRARIES})
# if(BUILD_TESTS)
# add_executable(tests ${sources} ${sources_gui} ${sources_test})
# set_target_properties(tests PROPERTIES CXX_STANDARD 17)
# target_link_libraries(tests ${SFML_LIBRARIES})
# endif()
add_compile_options(-Wall -Wextra -Wshadow -Werror -Wconversion -Wpedantic -Wno-sign-conversion)
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -O0")