Skip to content

Commit

Permalink
COMP: Add install rules for PluginFramework CMake modules
Browse files Browse the repository at this point in the history
Co-authored-by: louwei <louwei@aubo-robotics.cn>
  • Loading branch information
jcfr and louwei committed Oct 25, 2023
1 parent c57612f commit 4888deb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMake/CTKConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,19 @@ include("${CTK_CMAKE_DIR}/ctkMacroTargetLibraries.cmake") # Import multiple macr
include("${CTK_CMAKE_DIR}/ctkFunctionExtractOptionNameAndValue.cmake")
include("${CTK_CMAKE_DIR}/ctkMacroValidateBuildOptions.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGenerateDGraphInput.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetIncludeDirs.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetLibraryDirs.cmake")
include("${CTK_CMAKE_DIR}/ctkMacroGenerateMocs.cmake")

# PluginFramework
include("${CTK_CMAKE_DIR}/ctkFunctionGeneratePluginManifest.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGeneratePluginUseFile.cmake")
include("${CTK_CMAKE_DIR}/ctkMacroGeneratePluginResourceFile.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetIncludeDirs.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetLibraryDirs.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionExtractPluginTargets.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetAllPluginTargets.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetTargetDependencies.cmake")
include("${CTK_CMAKE_DIR}/ctkFunctionGetPluginDependencies.cmake")
include("${CTK_CMAKE_DIR}/ctkMacroSetupPlugins.cmake")
include("${CTK_CMAKE_DIR}/ctkMacroGenerateMocs.cmake")

include(CMakeFindDependencyMacro)

Expand Down
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,23 @@ endif()
#
add_subdirectory( Documentation )

#---------------------------------------------------------------------------
# Install rules
#
foreach(file
# PluginFramework
CMake/ctkFunctionGeneratePluginManifest.cmake
CMake/ctkFunctionGeneratePluginUseFile.cmake
CMake/ctkMacroGeneratePluginResourceFile.cmake
CMake/ctkFunctionExtractPluginTargets.cmake
CMake/ctkFunctionGetAllPluginTargets.cmake
CMake/ctkFunctionGetTargetDependencies.cmake
CMake/ctkFunctionGetPluginDependencies.cmake
CMake/ctkMacroSetupPlugins.cmake
)
install(FILES ${file} DESTINATION ${CTK_INSTALL_CMAKE_DIR} COMPONENT Development)
endforeach()

#-----------------------------------------------------------------------------
# The commands in this directory are intended to be executed as
# the end of the whole configuration process, as a "last step".
Expand Down

0 comments on commit 4888deb

Please sign in to comment.