-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
38 lines (32 loc) · 1.1 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
#cmake version
cmake_minimum_required(VERSION 2.8)
project(MazeSolver)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
#set possible values of built type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug"
"MinSizeRel" "RelWithDebInfo")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_CXX_FLAGS "-std=c++1y")
set(EXECUTABLE_NAME "MazeSolver")
set(VERSION_MAJOR 1)
set(VERSION_MINOR 1)
configure_file(
"${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
set(HEADERS
src/mazesolve/disjointSets.hpp
src/mazesolve/mazeGen.hpp
src/mazesolve/astar.hpp
)
set(SOURCES
src/mazesolve/disjointSets.cpp
src/mazesolve/mazeGen.cpp
src/main.cpp
)
include_directories("${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/src/mazesolve")
add_executable(${EXECUTABLE_NAME} ${SOURCES} ${HEADERS})