Commit 538f6b0b authored by David Thompson's avatar David Thompson

WIP: Fix from TJ. Also install CMake stuff...

... so that SMTK CMake macros can be used from external projects.
parent 50734c01
Pipeline #98845 failed with stage
......@@ -207,7 +207,7 @@ endfunction()
# )
#
# This CMake function creates a new environment library using the REGISTRAR
# class your specify and any additional SOURCES. If Python support is enabled,
# class you specify and any additional SOURCES. If Python support is enabled,
# this function also generates a python module for the environment library.
# The argument you pass to REGISTRAR is the name of a class whose constructor
# takes a vector<smtk::common::Manager::WeakPtr>. This class must register
......
......@@ -672,6 +672,25 @@ configure_file(
install (FILES ${PROJECT_BINARY_DIR}/CMakeFiles/SMTKConfig.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SMTK)
################################################################################
# Install CMake macros and configure inputs so external projects can use them.
#
# External projects may wish to create environment libraries, pybind wrappings,
# Qt views, and other SMTK functionality. Install these files where they can
# be used from an installed SMTK.
install(
FILES
${PROJECT_SOURCE_DIR}/CMake/SMTKCoverage.cmake
${PROJECT_SOURCE_DIR}/CMake/SMTKMacros.cmake
${PROJECT_SOURCE_DIR}/CMake/Environment.h.in
${PROJECT_SOURCE_DIR}/CMake/Environment.cxx.in
${PROJECT_SOURCE_DIR}/CMake/SMTKPybindEnvironment.cxx.in
${PROJECT_SOURCE_DIR}/CMake/SMTKPybindEnvironment.py.in
${PROJECT_SOURCE_DIR}/CMake/TestBuild.cxx.in
${PROJECT_SOURCE_DIR}/CMake/qtSMTKViewImplementation.h.in
${PROJECT_SOURCE_DIR}/CMake/qtSMTKViewImplementation.cxx.in
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SMTK
)
################################################################################
# Build documentation
# This also includes tutorials and other documentation that has its
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment