Commit 9fd7489f authored by Michael Pyne's avatar Michael Pyne
Browse files

modularize: Add CMake magic to install component modules.

parent 081a19ca
......@@ -12,7 +12,49 @@ else()
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "The install dir for executables")
endif()
set(KDESRC_BUILD_INSTALL_MODULES TRUE CACHE BOOL "Controls whether to install the modules that make up the script. Leave enabled unless running straight from source")
set(KDESRC_BUILD_MODULE_INSTALL_PREFIX "${DATA_INSTALL_DIR}/kdesrc-build/modules" CACHE PATH "Prefix to install the component Perl modules to. (This is only an option to allow for installing to vendor_perl or similar)")
if (KDESRC_BUILD_INSTALL_MODULES)
message(STATUS "Installing component modules to ${KDESRC_BUILD_MODULE_INSTALL_PREFIX}")
install(FILES
modules/ksb/BuildContext.pm
modules/ksb/BuildSystem.pm
modules/ksb/Debug.pm
modules/ksb/DependencyResolver.pm
modules/ksb/IPC.pm
modules/ksb/KDEXMLReader.pm
modules/ksb/Module.pm
modules/ksb/PhaseList.pm
modules/ksb/RecursiveFH.pm
modules/ksb/Updater.pm
modules/ksb/Util.pm
modules/ksb/Version.pm
modules/ksb/l10nSystem.pm
DESTINATION ${KDESRC_BUILD_MODULE_INSTALL_PREFIX}/ksb)
install(FILES
modules/ksb/BuildSystem/Autotools.pm
modules/ksb/BuildSystem/CMakeBootstrap.pm
modules/ksb/BuildSystem/KDE4.pm
modules/ksb/BuildSystem/QMake.pm
modules/ksb/BuildSystem/Qt4.pm
DESTINATION ${KDESRC_BUILD_MODULE_INSTALL_PREFIX}/ksb/BuildSystem)
install(FILES
modules/ksb/IPC/Null.pm
modules/ksb/IPC/Pipe.pm
DESTINATION ${KDESRC_BUILD_MODULE_INSTALL_PREFIX}/ksb/IPC)
install(FILES
modules/ksb/Updater/Bzr.pm
modules/ksb/Updater/Git.pm
modules/ksb/Updater/KDEProject.pm
modules/ksb/Updater/KDEProjectMetadata.pm
modules/ksb/Updater/Svn.pm
DESTINATION ${KDESRC_BUILD_MODULE_INSTALL_PREFIX}/ksb/Updater)
endif()
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kdesrc-build DESTINATION ${BIN_INSTALL_DIR})
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kdesrc-build-setup DESTINATION ${BIN_INSTALL_DIR})
install(FILES kdesrc-buildrc.xml DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax)
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