Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VTK Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VTK
VTK Examples
Commits
eb3ca339
Commit
eb3ca339
authored
2 years ago
by
Andrew Maclean
Browse files
Options
Downloads
Patches
Plain Diff
Excluding examples if third party VTK libraries not built
parent
44f9533a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/Cxx/GeometricObjects/CMakeLists.txt
+5
-1
5 additions, 1 deletion
src/Cxx/GeometricObjects/CMakeLists.txt
src/Cxx/Rendering/CMakeLists.txt
+9
-2
9 additions, 2 deletions
src/Cxx/Rendering/CMakeLists.txt
with
15 additions
and
4 deletions
CMakeLists.txt
+
1
−
1
View file @
eb3ca339
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/Cxx/GeometricObjects/CMakeLists.txt
+
5
−
1
View file @
eb3ca339
...
...
@@ -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
}
)
...
...
This diff is collapsed.
Click to expand it.
src/Cxx/Rendering/CMakeLists.txt
+
9
−
2
View file @
eb3ca339
...
...
@@ -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
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment