-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
63 lines (51 loc) · 1.39 KB
/
CMakeLists.txt
File metadata and controls
63 lines (51 loc) · 1.39 KB
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
cmake_minimum_required (VERSION 3.10)
project(Diligent-RenderStatePackager CXX)
set(INCLUDE
include/ParsingEnvironment.hpp
include/RenderStatePackager.hpp
)
set(SOURCE
src/ParsingEnvironment.cpp
src/RenderStatePackager.cpp
)
source_group("include" FILES ${INCLUDE})
source_group("src" FILES ${SOURCE})
add_library(Diligent-RenderStatePackagerLib STATIC
${INCLUDE}
${SOURCE}
)
target_include_directories(Diligent-RenderStatePackagerLib
PUBLIC
include
)
target_link_libraries(Diligent-RenderStatePackagerLib
PRIVATE
Diligent-BuildSettings
Diligent-GraphicsAccessories
PUBLIC
Diligent-Archiver-static
Diligent-RenderStateNotation
)
set_common_target_properties(Diligent-RenderStatePackagerLib)
add_executable(Diligent-RenderStatePackager
src/main.cpp
README.md
)
set_common_target_properties(Diligent-RenderStatePackager)
target_link_libraries(Diligent-RenderStatePackager
PRIVATE
Diligent-BuildSettings
Diligent-Common
Diligent-RenderStatePackagerLib
)
target_include_directories(Diligent-RenderStatePackager
PRIVATE
include
${DILIGENT_ARGS_DIR}
)
if (DILIGENT_INSTALL_TOOLS)
install(TARGETS Diligent-RenderStatePackager RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/${DILIGENT_TOOLS_DIR}/$<CONFIG>" OPTIONAL)
endif()
set_target_properties(Diligent-RenderStatePackagerLib Diligent-RenderStatePackager PROPERTIES
FOLDER DiligentTools
)