Skip to content
Snippets Groups Projects
Commit eb3ca339 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

Excluding examples if third party VTK libraries not built

parent 44f9533a
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ message(STATUS "VTKWikiExamples: VTK VERSION: ${VTK_VERSION}(${VTK_RENDERING_BAC
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to be used")
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE STRING "C++ standard to be used")
message(STATUS "C++ standard: ${CMAKE_CXX_STANDARD}")
message(STATUS "C++ standard: C++${CMAKE_CXX_STANDARD}")
#-----------------------------------------------------------------------------
set(CMAKE_MODULE_PATH
......
......@@ -23,9 +23,9 @@ if(NOT VTK_BINARY_DIR)
RenderingFreeType
RenderingLabel
RenderingOpenGL2
OPTIONAL_COMPONENTS
cli11
fmt
OPTIONAL_COMPONENTS
TestingRendering
QUIET
)
......@@ -40,6 +40,8 @@ file(GLOB ALL_FILES *.cxx)
# set(VERSION_MIN "7.0")
# Requires_Version(ParametricKuenDemo ${VERSION_MIN} ALL_FILES)
# Requires_Version(ParametricObjectsDemo2 ${VERSION_MIN} ALL_FILES)
include(${WikiExamples_SOURCE_DIR}/CMake/RequiresModule.cmake)
Requires_Module(OpenVRCone RenderingOpenVR)
Requires_Module(OpenVRCube RenderingOpenVR)
Requires_Module(OpenVRCylinder RenderingOpenVR)
......@@ -48,6 +50,8 @@ Requires_Module(OpenVROrientedArrow RenderingOpenVR)
Requires_Module(OpenVROrientedCylinder RenderingOpenVR)
Requires_Module(OpenVRSphere RenderingOpenVR)
Requires_Module(OpenVRTessellatedBoxSource RenderingOpenVR)
Requires_Module(ParametricObjectsDemo cli11)
Requires_Module(ParametricObjectsDemo fmt)
foreach(SOURCE_FILE ${ALL_FILES})
string(REPLACE ".cxx" "" TMP ${SOURCE_FILE})
......
......@@ -32,9 +32,9 @@ if(NOT VTK_BINARY_DIR)
RenderingFreeType
RenderingGL2PSOpenGL2
RenderingOpenGL2
OPTIONAL_COMPONENTS
cli11
jsoncpp
OPTIONAL_COMPONENTS
TestingRendering
QUIET
)
......@@ -42,7 +42,6 @@ endif()
set(KIT_LIBS ${VTK_LIBRARIES})
#
# Build all .cxx files in the directory
file(GLOB ALL_FILES *.cxx)
......@@ -53,6 +52,14 @@ Requires_Cxx_Version(PBR_Skybox ${CXX_VERSION_MIN} ALL_FILES)
Requires_Cxx_Version(PBR_Skybox_Texturing ${CXX_VERSION_MIN} ALL_FILES)
Requires_Cxx_Version(PBR_Skybox_Anisotropy ${CXX_VERSION_MIN} ALL_FILES)
include(${WikiExamples_SOURCE_DIR}/CMake/RequiresModule.cmake)
Requires_Module(PBR_Skybox cli11)
Requires_Module(PBR_Skybox jsoncpp)
Requires_Module(PBR_Skybox_Texturing cli11)
Requires_Module(PBR_Skybox_Texturing jsoncpp)
Requires_Module(PBR_Skybox_Anisotropy cli11)
Requires_Module(PBR_Skybox_Anisotropy jsoncpp)
foreach(SOURCE_FILE ${ALL_FILES})
string(REPLACE ".cxx" "" TMP ${SOURCE_FILE})
string(REPLACE ${CMAKE_CURRENT_SOURCE_DIR}/ "" EXAMPLE ${TMP})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment