-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (33 loc) · 1.23 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
39
40
41
42
43
44
45
cmake_minimum_required( VERSION 3.18 FATAL_ERROR )
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
project( Sidury )
option( STEAM "Build the steam abstraction" OFF )
option( GAME_OLD "Build the old game code" OFF )
# option( GAME "Build the game code" OFF )
option( EDITOR "Build the editor" ON )
# Add Chocolate Framework DLLs
# add_subdirectory( ../chocolate ${CMAKE_CURRENT_LIST_DIR} )
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/../chocolate ${CMAKE_CURRENT_LIST_DIR}/../chocolate )
message( "" )
message( "Game Projects" )
# grab the globals and put them here
get_property( CH_ROOT GLOBAL PROPERTY CH_ROOT )
get_property( CH_PUBLIC GLOBAL PROPERTY CH_PUBLIC )
get_property( CH_THIRDPARTY GLOBAL PROPERTY CH_THIRDPARTY )
include( ${CH_ROOT}/scripts/core.cmake )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CH_ROOT}/obj/sidury )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CH_ROOT}/obj/sidury/Debug )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CH_ROOT}/obj/sidury/Release )
# Now Add Sidury Projects
add_subdirectory( src/launcher )
if ( GAME_OLD )
add_subdirectory( src/game )
else()
add_subdirectory( src/sidury2 )
endif( GAME_OLD )
if( EDITOR )
add_subdirectory( src/toolkit )
endif( EDITOR )
if( STEAM )
add_subdirectory( src/steam )
endif( STEAM )