forked from kvakvs/hge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (47 loc) · 1.92 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
## HGE CMake script including HGEHELP and examples
##
project(HGE)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
##----------------------------------------
## Edit this to match your configuration
##----------------------------------------
SET(DIRECTX_SDK_DIR "E:/Dev/DX9SDK")
##----------------------------------------
## End of manual configuration section
## try to minimize tampering with code below unless you know how CMake works
##----------------------------------------
add_definitions("-DHGE_UNICODE=${HGE_UNICODE}")
# disable warnings on STD non conformance and security issues
add_definitions(
"-D_CRT_SECURE_NO_WARNINGS"
"-D_CRT_NONSTDC_NO_WARNINGS"
"-D_SCL_SECURE_NO_WARNINGS"
"-D_WIN32_WINNT=0x0501" "/MP")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${HGE_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables.")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${HGE_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables.")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${HGE_SOURCE_DIR}/linklib CACHE PATH "Single Directory for all static libraries.")
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
#---------------------------------
add_subdirectory(src/zlib-1.2.5)
add_subdirectory(src/libPNG)
#--- HGE core library and helpers ---
add_subdirectory(src/helpers)
add_subdirectory(src/core)
#--- HGE TOOLS - comment out of not needed ---
add_subdirectory(src/fontconv)
add_subdirectory(src/fonted)
add_subdirectory(src/particleed)
add_subdirectory(src/pngopt)
add_subdirectory(src/texasm)
#--- HGE examples ---
add_subdirectory(tutorials/tutorial01)
add_subdirectory(tutorials/tutorial02)
add_subdirectory(tutorials/tutorial03)
add_subdirectory(tutorials/tutorial04)
add_subdirectory(tutorials/tutorial05)
add_subdirectory(tutorials/tutorial06)
add_subdirectory(tutorials/tutorial07)
add_subdirectory(tutorials/tutorial08)
add_subdirectory(tutorials/tutorial05_shaders)