forked from suijingfeng/vkQuake3
-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
47 lines (39 loc) · 1.37 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
cmake_minimum_required (VERSION 3.0)
project (vkQuake3)
#SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
#SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
#SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON)
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
message("Debug build")
add_definitions(-DDEBUG_BUILD)
endif()
set(ARCH_STRING
#armv8-a #RPi support: 2B 1.2, 3B, 3B+
#armv7-a #RPi support: 2B
#armv8 #RPi support: 3A+
armv6z #RPi support: 1A, 1A+, 1B, Zero 1.2, Zero 1.3, Zero W
)
add_definitions(-DARCH_STRING="${ARCH_STRING}")
add_definitions(-DPLATFORM="linux")
add_definitions(-DCROSS_COMPILING=1)
add_definitions(-DVERSION="1.36")
add_definitions(-DCLIENTBIN="ioquake3")
add_definitions(-DSERVERBIN="ioq3ded")
add_definitions(-DBASEGAME="baseq3")
add_definitions(-DMISSIONPACK="missionpack")
add_definitions(-DMOUNT_DIR="code")
add_definitions(-DBUILD_DIR="build")
add_definitions(-DBOTLIB)
if(${ARCH_STRING} STREQUAL armv6z)
add_definitions(-DNO_VM_COMPILED)
endif()
add_definitions(-DUSE_RENDERER_DLOPEN)
add_definitions(-DNDEBUG)
set (SOURCE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
link_directories(${SOURCE_PATH}/code/SDL2/lib)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(code)