You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
cmake_minimum_required(VERSION 3.13)
2
2
3
+
if(NOT DILIGENT_CORE_FOUND)
4
+
message(FATAL_ERROR "DiligentCore module is not found. To build the samples and tutorials, please clone the main repository as described in the documentation (see https://github.com/DiligentGraphics/DiligentSamples/blob/master/README.md)")
5
+
endif()
6
+
if(NOT DILIGENT_TOOLS_FOUND)
7
+
message(FATAL_ERROR "DiligentTools module is not found. Please add DiligentTools module to the project before DiligentSamples module.")
8
+
endif()
9
+
if(NOT DILIGENT_FX_FOUND)
10
+
message(FATAL_ERROR "DiligentFX module is not found. Please add DiligentFX module to the project before DiligentSamples module.")
11
+
endif()
12
+
13
+
set(DILIGENT_SAMPLES_FOUND TRUECACHEINTERNAL"DiligentSamples module is found")
14
+
3
15
if(PLATFORM_WIN32 OR PLATFORM_LINUX)
4
16
option(DILIGENT_INSTALL_SAMPLES "Enable installation of samples and tutorials"ON)
0 commit comments