git.s-ol.nu ~forks/DiligentTools / 7c13e1d
Added 'Diligent-' prefix to project names to avoid name conflicts (https://github.com/DiligentGraphics/DiligentEngine/issues/20) Egor Yusov 2 years ago
9 changed file(s) with 48 addition(s) and 48 deletion(s). Raw diff Collapse all Expand all
00 cmake_minimum_required (VERSION 3.6)
11
2 project(AssetLoader CXX)
2 project(Diligent-AssetLoader CXX)
33
44 set(INCLUDE
55 #include/GLTFLoader.h
1313 src/GLTFLoader.cpp
1414 )
1515
16 add_library(AssetLoader STATIC ${SOURCE} ${INCLUDE} ${INTERFACE})
17 set_common_target_properties(AssetLoader)
16 add_library(Diligent-AssetLoader STATIC ${SOURCE} ${INCLUDE} ${INTERFACE})
17 set_common_target_properties(Diligent-AssetLoader)
1818
19 target_include_directories(AssetLoader
19 target_include_directories(Diligent-AssetLoader
2020 PUBLIC
2121 interface
2222 PRIVATE
2727 source_group("include" FILES ${INCLUDE})
2828 source_group("interface" FILES ${INTERFACE})
2929
30 target_link_libraries(AssetLoader
30 target_link_libraries(Diligent-AssetLoader
3131 PRIVATE
32 BuildSettings
33 Common
34 PlatformInterface
35 GraphicsEngineInterface
36 GraphicsAccessories
37 GraphicsTools
38 TextureLoader
32 Diligent-BuildSettings
33 Diligent-Common
34 Diligent-PlatformInterface
35 Diligent-GraphicsEngineInterface
36 Diligent-GraphicsAccessories
37 Diligent-GraphicsTools
38 Diligent-TextureLoader
3939 )
4040
41 set_target_properties(AssetLoader PROPERTIES
41 set_target_properties(Diligent-AssetLoader PROPERTIES
4242 FOLDER Tools
4343 )
6767
6868 target_include_directories(LibJpeg PUBLIC .)
6969
70 target_link_libraries(LibJpeg PRIVATE BuildSettings)
70 target_link_libraries(LibJpeg PRIVATE Diligent-BuildSettings)
7171
7272 if(MSVC)
7373 # Disable MSVC-specific warnings
101101 )
102102 endif()
103103
104 target_link_libraries(LibTiff PRIVATE BuildSettings)
104 target_link_libraries(LibTiff PRIVATE Diligent-BuildSettings)
105105
106106 target_include_directories(LibTiff
107107 PUBLIC libtiff
4949
5050 target_link_libraries(LibPng
5151 PRIVATE
52 BuildSettings
52 Diligent-BuildSettings
5353 PUBLIC
5454 ZLib
5555 )
7777 src
7878 )
7979
80 target_link_libraries(Lua PRIVATE BuildSettings)
80 target_link_libraries(Lua PRIVATE Diligent-BuildSettings)
8181
8282 if(MSVC)
8383 # Disable MSVC-specific warnings
3636 add_library(ZLib STATIC ${SOURCE} ${INCLUDE})
3737 set_common_target_properties(ZLib)
3838
39 target_link_libraries(ZLib PRIVATE BuildSettings)
39 target_link_libraries(ZLib PRIVATE Diligent-BuildSettings)
4040
4141 if(MSVC)
4242 target_compile_definitions(ZLib PRIVATE -D_CRT_SECURE_NO_DEPRECATE)
2121
2222 target_link_libraries(HLSL2GLSLConverter
2323 PRIVATE
24 BuildSettings
25 TargetPlatform
26 Common
27 GraphicsTools
28 HLSL2GLSLConverterLib
29 GraphicsEngineOpenGL-static
24 Diligent-BuildSettings
25 Diligent-TargetPlatform
26 Diligent-Common
27 Diligent-GraphicsTools
28 Diligent-HLSL2GLSLConverterLib
29 Diligent-GraphicsEngineOpenGL-static
3030 )
3131
3232 source_group("source" FILES ${SOURCE})
00 cmake_minimum_required (VERSION 3.6)
11
2 project(RenderScript CXX)
2 project(Diligent-RenderScript CXX)
33
44 set(INCLUDE
55 include/BlendStateDescParser.h
6262 src/ViewportParser.cpp
6363 )
6464
65 add_library(RenderScript STATIC ${SOURCE} ${INCLUDE})
66 set_common_target_properties(RenderScript)
65 add_library(Diligent-RenderScript STATIC ${SOURCE} ${INCLUDE})
66 set_common_target_properties(Diligent-RenderScript)
6767
68 target_include_directories(RenderScript
68 target_include_directories(Diligent-RenderScript
6969 PUBLIC
7070 include
7171 )
7676 # warning: offset of on non-standard-layout type [-Winvalid-offsetof]
7777 # This is OK because the warning is generated for simple structs (such as TextureDesc)
7878 # that fail to be a POD type only by virtue of having a constructor and comparison operator
79 target_compile_options(RenderScript PRIVATE -Wno-invalid-offsetof)
79 target_compile_options(Diligent-RenderScript PRIVATE -Wno-invalid-offsetof)
8080 endif()
8181
8282 source_group("source" FILES ${SOURCE})
8383 source_group("include" FILES ${INCLUDE})
8484
85 target_link_libraries(RenderScript
85 target_link_libraries(Diligent-RenderScript
8686 PUBLIC
8787 Lua
8888 PRIVATE
89 BuildSettings
90 GraphicsEngineInterface
91 GraphicsAccessories
92 Common
93 PlatformInterface
94 GraphicsTools
89 Diligent-BuildSettings
90 Diligent-GraphicsEngineInterface
91 Diligent-GraphicsAccessories
92 Diligent-Common
93 Diligent-PlatformInterface
94 Diligent-GraphicsTools
9595 )
9696
97 set_target_properties(RenderScript PROPERTIES
97 set_target_properties(Diligent-RenderScript PROPERTIES
9898 FOLDER Tools
9999 )
00 cmake_minimum_required (VERSION 3.6)
11
2 project(TextureLoader CXX)
2 project(Diligent-TextureLoader CXX)
33
44 set(INCLUDE
55 include/DDSLoader.h
2121 src/TextureUtilities.cpp
2222 )
2323
24 add_library(TextureLoader STATIC ${SOURCE} ${INCLUDE} ${INTERFACE})
25 set_common_target_properties(TextureLoader)
24 add_library(Diligent-TextureLoader STATIC ${SOURCE} ${INCLUDE} ${INTERFACE})
25 set_common_target_properties(Diligent-TextureLoader)
2626
27 target_include_directories(TextureLoader
27 target_include_directories(Diligent-TextureLoader
2828 PUBLIC
2929 interface
3030 PRIVATE
3535 source_group("include" FILES ${INCLUDE})
3636 source_group("interface" FILES ${INTERFACE})
3737
38 target_link_libraries(TextureLoader
38 target_link_libraries(Diligent-TextureLoader
3939 PRIVATE
40 BuildSettings
41 Common
42 PlatformInterface
43 GraphicsEngineInterface
44 GraphicsAccessories
40 Diligent-BuildSettings
41 Diligent-Common
42 Diligent-PlatformInterface
43 Diligent-GraphicsEngineInterface
44 Diligent-GraphicsAccessories
4545 LibJpeg
4646 LibPng
4747 LibTiff
4848 ZLib
4949 )
5050
51 set_target_properties(TextureLoader PROPERTIES
51 set_target_properties(Diligent-TextureLoader PROPERTIES
5252 FOLDER Tools
5353 )