Skip to content

Commit 1b289f8

Browse files
CMake: check that Core and Tools modules are found
1 parent dbf7b60 commit 1b289f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
cmake_minimum_required (VERSION 3.10)
22

3+
if(NOT DILIGENT_CORE_FOUND)
4+
message(FATAL_ERROR "DiligentCore module is not found. Please add DiligentCore module to the project before DiligentFX module.")
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 DiligentFX module.")
8+
endif()
9+
10+
set(DILIGENT_FX_FOUND TRUE CACHE INTERNAL "DiligentFX module is found")
11+
312
include(BuildUtils.cmake)
413

514
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

0 commit comments

Comments
 (0)