-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
56 lines (50 loc) · 1.82 KB
/
CMakeLists.txt
File metadata and controls
56 lines (50 loc) · 1.82 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## CMAKE VAR
## <=====================================>
cmake_minimum_required( VERSION 3.17...3.22 )
project( Incaribus
VERSION
0.1
DESCRIPTION
"Example project to test ShipWreckEngine"
LANGUAGES
CXX
)
set( CMAKE_CXX_STANDARD 20 )
set( CMAKE_CXX_STANDARD_REQUIRED True )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/out/ )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/out/ )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/out/ )
set(PREFIX_MESSAGE "[${PROJECT_NAME}] ")
## <=====================================>
## SOURCE FOLDERS
set( SRC_FOLDERS
${CMAKE_SOURCE_DIR}/sources/
${CMAKE_SOURCE_DIR}/sources/scenes/
${CMAKE_SOURCE_DIR}/sources/script/
${CMAKE_SOURCE_DIR}/sources/script/props/
${CMAKE_SOURCE_DIR}/sources/script/character/
)
## INCLUDE FOLDERS
set( INC_FOLDERS
${CMAKE_SOURCE_DIR}/libraries/
${CMAKE_SOURCE_DIR}/libraries/module/
${CMAKE_SOURCE_DIR}/libraries/core/
${CMAKE_SOURCE_DIR}/libraries/freetype/
${CMAKE_SOURCE_DIR}/includes/
${CMAKE_SOURCE_DIR}/includes/scenes/
${CMAKE_SOURCE_DIR}/includes/script/
${CMAKE_SOURCE_DIR}/includes/script/props/
${CMAKE_SOURCE_DIR}/includes/script/character/
)
message(${PREFIX_MESSAGE} "Build type set to: " ${CMAKE_BUILD_TYPE})
message(${PREFIX_MESSAGE} "Current cmake location: " ${CMAKE_CURRENT_SOURCE_DIR})
message(${PREFIX_MESSAGE} "Project location: " ${CMAKE_SOURCE_DIR})
if (WIN32)
message(${PREFIX_MESSAGE} "Windows system detected, prepare project...")
include(.cmake_windows.cmake)
elseif(UNIX)
message(${PREFIX_MESSAGE} "Linux system detected, prepare project...")
include(.cmake_linux.cmake)
else()
message(FATAL_ERROR "System not supported!")
endif()