-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
73 lines (61 loc) · 1.66 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
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.14)
if(SIMUL_PLATFORM_DIR)
set(SIMUL_PLATFORM_FOLDER_PREFIX Platform)
else()
project(Platform)
set(SIMUL_PLATFORM_DIR ${CMAKE_CURRENT_SOURCE_DIR})
endif()
include("CMake/Variables.cmake")
include("CMake/Include.cmake")
include("CMake/Shader.cmake")
add_subdirectory(Core)
add_subdirectory(Math)
add_subdirectory(CrossPlatform)
if(SIMUL_SOURCE_BUILD)
add_subdirectory(Applications/Sfx)
endif()
if(SIMUL_BUILD_SAMPLES)
if(SIMUL_SUPPORT_VULKAN)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
add_subdirectory(External/glfw)
endif()
endif()
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_subdirectory(Vulkan)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
if(SIMUL_SOURCE_BUILD)
add_subdirectory(Applications/Sample)
endif()
if( SIMUL_SUPPORT_OPENGL )
add_subdirectory(OpenGL)
endif()
add_subdirectory(DirectX11)
endif()
if(XBOXONE)
add_subdirectory(DirectX12)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
add_subdirectory(DirectX12)
endif()
if(XBOXONE)
add_subdirectory(External/DirectX/DirectXTex/DirectXTex)
set( ENV{SIMUL_XDK_VERSION} ${REQUIRED_XB1_TOOLCHAIN_VERSION})
endif()
if(GDK)
add_subdirectory(DirectX12)
add_subdirectory(External/DirectX/DirectXTex/DirectXTex)
#add_subdirectory(External/DirectX/DirectXTK12)
set( ENV{SIMUL_XDK_VERSION} ${REQUIRED_XB1_TOOLCHAIN_VERSION})
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
add_subdirectory(External/DirectX/DirectXTex/DirectXTex)
add_subdirectory(External/DirectX/Effects11_Win8SDK)
endif()
if(SIMUL_SUPPORT_PS4)
add_subdirectory(PS4/Render)
endif()
if(PLATFORM_COMMODORE)
add_subdirectory(Commodore)
endif()