-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
65 lines (50 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# From http://eldalin.com/2010/10/21/introduction-to-cmake-2/
########################################################################
#
# A generalized cmake file for developing cross-platform games.
#
cmake_minimum_required (VERSION 2.6 FATAL_ERROR)
# set (CMAKE_VERBOSE_MAKEFILE ON)
########################################################################
# Ensure that we are not building in our source directories.
set (Build_Dir_OK "TRUE")
string (REGEX MATCH "^${CMAKE_SOURCE_DIR}" In_Sub_Dir ${CMAKE_BINARY_DIR})
if (In_Sub_Dir)
string (REGEX MATCH "^${CMAKE_SOURCE_DIR}/build" In_Build_Dir ${CMAKE_BINARY_DIR})
if (NOT In_Build_Dir)
set (Build_Dir_OK "FALSE")
endif ()
endif ()
if (NOT Build_Dir_OK)
message (FATAL_ERROR "You must run cmake from a directory that is not in your source tree, or that is in a special subdirectory of the tree whose name begins with ‘build’.")
endif ()
########################################################################
# Set up the basic build environment
if (CMAKE_BUILD_TYPE STREQUAL "")
# CMake defaults to leaving CMAKE_BUILD_TYPE empty. This messes up
# differentiation between debug and release builds.
set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif ()
########################################################################
link_directories(
)
include_directories(
${CMAKE_SOURCE_DIR}/gdemu
)
ADD_SUBDIRECTORY(gdemu)
ADD_SUBDIRECTORY(asteroids)
ADD_SUBDIRECTORY(ball)
ADD_SUBDIRECTORY(selftest)
ADD_SUBDIRECTORY(toccata)
ADD_SUBDIRECTORY(sample)
ADD_SUBDIRECTORY(player)
ADD_SUBDIRECTORY(wireframe)
ADD_SUBDIRECTORY(manicminer)
ADD_SUBDIRECTORY(cp437)
ADD_SUBDIRECTORY(instruments)
ADD_SUBDIRECTORY(instruments2)
ADD_SUBDIRECTORY(joytest)
ADD_SUBDIRECTORY(ikeda)
ADD_SUBDIRECTORY(knot)
ADD_SUBDIRECTORY(chua)
########################################################################