## == Some general configuration
include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgDefinitions.cmake)
include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgFunctions.cmake)
-
+set(
+ cpPlugins_INSTALL_FILE
+ @CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgInstallCommands.cmake
+ )
## == Automatically generated commands
@PACKAGE_INIT@
-include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
-check_required_components("@PROJECT_NAME@")
+## == Include targets file
+set(_targets "${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
+if(EXISTS "${_targets}")
+ include("${_targets}")
+ check_required_components("@PROJECT_NAME@")
+endif(EXISTS "${_targets}")
## ======================================
## == Needed packages and dependencies ==