-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (23 loc) · 986 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
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.7)
set(PROJECT Codex)
project(${PROJECT})
message("Start building project ${Codex}")
set(EXECUTABLE ${PROJECT})
set(SOURCE_ROOT ./src)
set(FILES_DIR ${CMAKE_BINARY_DIR})
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
aux_source_directory(${SOURCE_ROOT} SOURCES)
aux_source_directory(${SOURCE_ROOT}/classes SUB_SOURCES)
set(SOURCES ${SOURCES} ${SUB_SOURCES})
file (GLOB HEADERS "${SOURCE_ROOT}/headers/*.h*")
source_group(Classes FILES ${SUB_SOURCES})
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(${EXECUTABLE} ${SOURCES} ${HEADERS})
include_directories(${SOURCE_ROOT}/headers)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/sandmark.umz
${CMAKE_CURRENT_BINARY_DIR}/sandmark.umz COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/codex.umz
${CMAKE_CURRENT_BINARY_DIR}/codex.umz COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/codex.bin
${CMAKE_CURRENT_BINARY_DIR}/codex.bin COPYONLY)