summaryrefslogtreecommitdiff
path: root/kdecore/includes/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/includes/CMakeLists.txt')
-rw-r--r--kdecore/includes/CMakeLists.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/kdecore/includes/CMakeLists.txt b/kdecore/includes/CMakeLists.txt
new file mode 100644
index 0000000..2a10c50
--- /dev/null
+++ b/kdecore/includes/CMakeLists.txt
@@ -0,0 +1,34 @@
+
+macro(install_headers _dir)
+ install( DIRECTORY ${_dir} DESTINATION ${INCLUDE_INSTALL_DIR} )
+endmacro()
+
+macro(create_header _file _path _header)
+ #For installation
+ set(CAMELCASE_INCLUDE_PATH "../${_header}")
+ configure_file(config-CamelCaseInclude.cmake ${CMAKE_CURRENT_BINARY_DIR}/KDE/${_file})
+ #For including from the kdepimlibs stuff
+ set(CAMELCASE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../${_path}/${_header}")
+ configure_file(config-CamelCaseInclude.cmake ${CMAKE_CURRENT_BINARY_DIR}/includes/KDE/${_file})
+endmacro()
+
+create_header(KCalendarSystem date kcalendarsystem.h)
+create_header(KConfig config kconfig.h)
+create_header(KCodecs text kcodecs.h)
+create_header(KConfigGroup config kconfiggroup.h)
+create_header(KDateTime date kdatetime.h)
+create_header(KDebug io kdebug.h)
+create_header(KGlobal kernel kglobal.h)
+create_header(KJob jobs kjob.h)
+create_header(KLocale localization klocale.h)
+create_header(KMimeType services kmimetype.h)
+create_header(KRandom util krandom.h)
+create_header(KSaveFile io ksavefile.h)
+create_header(KStandardDirs kernel kstandarddirs.h)
+create_header(KSystemTimeZone date ksystemtimezone.h)
+create_header(KTemporaryFile io ktemporaryfile.h)
+create_header(KTimeZone date ktimezone.h)
+create_header(KUrl io kurl.h)
+create_header(KLocalizedString localization klocalizedstring.h)
+
+install_headers(${CMAKE_CURRENT_BINARY_DIR}/KDE)