blob: ae8b9bb430876e7fddec896ecf4d5b41b6596fa4 (
plain)
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
|
cmake_minimum_required (VERSION 3.6)
project(Diligent-Primitives CXX)
set(SOURCE
src/DebugOutput.cpp
src/test.cpp
)
set(INTERFACE
interface/BasicTypes.h
interface/CommonDefinitions.h
interface/DataBlob.h
interface/DebugOutput.h
interface/DefineGlobalFuncHelperMacros.h
interface/DefineInterfaceHelperMacros.h
interface/FlagEnum.h
interface/Errors.hpp
interface/FileStream.h
interface/FormatString.hpp
interface/InterfaceID.h
interface/MemoryAllocator.h
interface/Object.h
interface/ReferenceCounters.h
interface/UndefGlobalFuncHelperMacros.h
interface/UndefInterfaceHelperMacros.h
)
# This should be an interface library. However, CMake does not show
# interface libraries in an IDE, so we have to create a static library instead
add_library(Diligent-Primitives STATIC ${INTERFACE} ${SOURCE})
set_common_target_properties(Diligent-Primitives)
target_link_libraries(Diligent-Primitives
PRIVATE
Diligent-BuildSettings
)
target_include_directories(Diligent-Primitives
PUBLIC
interface
)
source_group("interface" FILES ${INTERFACE})
source_group("src" FILES ${SOURCE})
set_target_properties(Diligent-Primitives PROPERTIES
FOLDER DiligentCore
)
if(DILIGENT_INSTALL_CORE)
install_core_lib(Diligent-Primitives)
endif()
|