-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdtkConfig.cmake.in
50 lines (45 loc) · 1.51 KB
/
dtkConfig.cmake.in
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
@PACKAGE_INIT@
# \todo Is this the correct way to locate the custom Find*.cmake files?
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
include(CMakeFindDependencyMacro)
find_dependency(Threads)
find_dependency(ZLIB)
find_dependency(nlohmann_json)
find_dependency(PNG)
find_dependency(Freetype)
find_dependency(lunasvg)
if(@dtk_UI_LIB@)
if(@dtk_API@ STREQUAL "GL_4_1" OR
@dtk_API@ STREQUAL "GL_4_1_Debug" OR
@dtk_API@ STREQUAL "GLES_2")
find_dependency(OpenGL)
find_dependency(glfw3)
endif()
set(dtk_API @dtk_API@)
add_definitions(-Ddtk_API_@dtk_API@)
if(@dtk_API@ STREQUAL "GL_4_1_Debug")
add_definitions(-Ddtk_API_GL_4_1)
endif()
if(@dtk_NFD@)
find_dependency(NFD)
endif()
if(@dtk_PYTHON@)
find_dependency(Python3)
find_dependency(pybind11)
endif()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/dtkresTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/dtkResourceLibTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/dtkCoreTargets.cmake")
if(@dtk_UI_LIB@)
include("${CMAKE_CURRENT_LIST_DIR}/gladTargets.cmake")
if(@dtk_API@ STREQUAL "GL_4_1" OR
@dtk_API@ STREQUAL "GL_4_1_Debug" OR
@dtk_API@ STREQUAL "GLES_2")
include("${CMAKE_CURRENT_LIST_DIR}/dtkGLTargets.cmake")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/dtkUITargets.cmake")
endif()
# \todo Is this the correct way to add the include directory?
include_directories("@PACKAGE_INCLUDE_INSTALL_DIR@")
check_required_components(dtk)