-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathCMakeLists.txt
80 lines (65 loc) · 2.59 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
74
75
76
77
78
79
cmake_minimum_required(VERSION 3.13)
set(FOLDER_NAME ${PROJECT_FOLDER_SDK_EXTERNAL})
message(STATUS "++++++++++++++++++External CMakeList called" )
if (OPTION_BUILD_APPS_CMP_CLI OR OPTION_BUILD_APPS_CMP_GUI)
include(${CMAKE_CURRENT_LIST_DIR}/glew/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/glm/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/opengl/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/qt5/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/rapidxml/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/vulkan/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/glfw/CMakeLists.txt)
endif()
if (OPTION_BUILD_BROTLIG)
include(${CMAKE_CURRENT_LIST_DIR}/brotlig/CMakeLists.txt)
endif()
# enable KTX2 features
if(OPTION_BUILD_KTX2)
include(${CMAKE_CURRENT_LIST_DIR}/ktx/CMakeLists.txt)
endif()
list(APPEND CMAKE_FIND_ROOT_PATH ${DEPENDENCIES_INSTALL_DIR})
#append know paths to cmake search path
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_LIST_DIR}/glew/glew_1.9.0)
set(PATH_SUFFIXES lib)
# ====================================================
# COMMON
# ====================================================
find_package(Threads REQUIRED QUIET)
# ====================================================
# DIRECTX
# ====================================================
if (OPTION_CMP_DIRECTX)
message(STATUS "++++++++++++++++++ DIRECTX 12")
add_library(ExtDirectX INTERFACE)
target_link_libraries(ExtDirectX INTERFACE
d3d12.lib
dxgi.lib
d3dcompiler.lib
)
endif()
# ====================================================
# DIRECTX TEX
# ====================================================
if (OPTION_CMP_DIRECTX)
message(STATUS "++++++++++++++++++ DIRECTX TEX")
include(${CMAKE_CURRENT_LIST_DIR}/directxtex/CMakeLists.txt)
# add_library(ExtDirectXTex INTERFACE)
target_link_libraries(ExtDirectXTex INTERFACE
DirectXTex
)
endif()
# ====================================================
# OPENCV
# ====================================================
if (OPTION_CMP_OPENCV)
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_LIST_DIR}/opencv/)
message(STATUS "++++++++++++++++++ OPENCV" )
include(${CMAKE_CURRENT_LIST_DIR}/opencv/CMakeLists.txt)
endif()
# ====================================================
# OPENEXR
# ====================================================
if (OPTION_BUILD_EXR)
message(STATUS "++++++++++++++++++ O P E N E X R" )
include(${CMAKE_CURRENT_LIST_DIR}/openexr/CMakeLists.txt)
endif()