diff options
author | Michele Calgaro <[email protected]> | 2023-12-11 04:11:27 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-03-05 10:23:45 +0900 |
commit | 95f2a2d8b59e13dcdcd7e58ed4ec8553f039b45e (patch) | |
tree | 933488bf4df57a5bf417ed94e3b63bf5e79e632b /userconfig/CMakeLists.txt | |
parent | fb563936c18efd3808cb88d6e6dc68f8997befac (diff) | |
download | tde-guidance-95f2a2d8b59e13dcdcd7e58ed4ec8553f039b45e.tar.gz tde-guidance-95f2a2d8b59e13dcdcd7e58ed4ec8553f039b45e.zip |
Conversion to cmake building system
Signed-off-by: Michele Calgaro <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'userconfig/CMakeLists.txt')
-rw-r--r-- | userconfig/CMakeLists.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/userconfig/CMakeLists.txt b/userconfig/CMakeLists.txt new file mode 100644 index 0000000..c04eb7d --- /dev/null +++ b/userconfig/CMakeLists.txt @@ -0,0 +1,61 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${PYTHON_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIBRARY_DIRS} +) + + +##### generate kcm control module code + +set( MODULE_NAME userconfig ) + +set( _MODULEDIR_ ${DATA_INSTALL_DIR}/guidance ) +set( _EXTRAMODULE_ ${TDE_GUIDANCE_DIST_PKG_PATH} ) +set( _MODULENAME_ ${MODULE_NAME} ) +set( _FACTORYFUNCTION_ create_${MODULE_NAME} ) + +configure_file( + ${CMAKE_SOURCE_DIR}/templates/kcm_module_stub.cpp.cmake + ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp @ONLY +) + + +##### kcm_userconfig (module) ####################### + +tde_add_kpart( kcm_${MODULE_NAME} AUTOMOC + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp + + LINK + tdecore-shared tdeui-shared + ${PYTHON_LIBRARIES} ${PYTHONIZE_LIBRARIES} + ${CMAKE_DL_LIBS} + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +tde_create_translated_desktop( + SOURCE ${MODULE_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES unixauthdb.py + DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH} +) + +install( + PROGRAMS ${MODULE_NAME}.py + DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH} +) + +tde_install_symlink( ${TDE_GUIDANCE_DIST_PKG_PATH}/${MODULE_NAME}.py ${BIN_INSTALL_DIR}/${MODULE_NAME} ) |