Skip to content
Snippets Groups Projects
Commit d8ca56fa authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: move utility macros to a separate module

parent ef4abcbe
No related branches found
No related tags found
No related merge requests found
macro (vtk_set_with_default var value)
if (NOT ${var})
set(${var} "${value}")
endif ()
endmacro ()
# VTK installation structure
set(vtk_subdir "vtk-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}")
vtk_set_with_default(VTK_INSTALL_RUNTIME_DIR "bin")
......
macro (vtk_set_with_default var value)
if (NOT ${var})
set(${var} "${value}")
endif ()
endmacro ()
......@@ -18,6 +18,7 @@ include(vtkInitializeBuildType)
include(vtkVersion)
set(VTK_VERSION
"${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${VTK_BUILD_VERSION}")
include(vtkSupportMacros)
include(vtkDownload)
include(vtkTesting)
include(vtkDirectories)
......
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