-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (32 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
cmake_minimum_required(VERSION 3.2)
if (WIN32)
# Windows abi linkage
# http://stackoverflow.com/a/20804336
include("cmake/msvcAbi.cmake")
elseif(APPLE)
# MacOS SDK. We are assuming the 10.11 SDK with XCode 7.X.X for now.
# XCode 8 is unsupported currently.
set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk)
endif()
#FreeBSD
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
if($ENV{LOCALBASE})
set(FREEBSD_LOCALBASE $ENV{LOCALBASE})
else()
set(FREEBSD_LOCALBASE /usr/local)
endif()
include_directories(${FREEBSD_LOCALBASE}/include)
link_directories(${FREEBSD_LOCALBASE}/lib)
endif()
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glfw")
include("cmake/compilerFlags.cmake")
include("cmake/openSimplexNoise.cmake")
include("cmake/game.cmake")
# We need JIKKEN, the cross platform rendering API from a separate repository
set(JIKKEN_PATH "" CACHE PATH "Path to the Jikken rendering API library")
if (JIKKEN_PATH STREQUAL "")
message(SEND_ERROR "Please set the Jikken render path to the root folder of the Jikken library.")
else()
# http://stackoverflow.com/a/15570165
add_subdirectory(${JIKKEN_PATH} "${CMAKE_CURRENT_BINARY_DIR}/thirdparty/jikken")
endif()