-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
30 lines (22 loc) · 1.14 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
# CMake min version, you can change it for the your own version
cmake_minimum_required(VERSION 3.15)
# The project name
project(Coopirative_Pathfinding)
# detect operating system
message(STATUS "We are on a ${CMAKE_SYSTEM_NAME} system")
# set project version
set(${PROJECT_NAME}_MAJOR_VERSION 0)
set(${PROJECT_NAME}_MINOR_VERSION 1)
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}")
message("${PROJECT_NAME} version: ${${PROJECT_NAME}_VERSION}")
# include checkers for the in - source build and build type
include(cmake/safeguard.cmake)
include(cmake/setflags.cmake)
# set directory variable with problem solver sources
set(PS_SRCDIR "sources/Problem_Solver/")
# Set sources variables
set(${PROJECT_NAME}_main "sources/main.cxx")
set(${PROJECT_NAME}_sources "${PS_SRCDIR}Agent.cxx" "${PS_SRCDIR}Map.cxx" "${PS_SRCDIR}Solver.cxx")
set(${PROJECT_NAME}_headers "includes/Agent.hpp" "includes/Map.hpp" "includes/common.hpp" "includes/Solver.hpp")
add_executable(${PROJECT_NAME} ${${PROJECT_NAME}_main} ${${PROJECT_NAME}_sources} ${${PROJECT_NAME}_headers})
target_include_directories(${PROJECT_NAME} PRIVATE "includes" )