diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-07-16 14:07:49 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-07-18 17:40:43 +0200 |
commit | d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc (patch) | |
tree | 3509747590af2f2833e7f387a57af763084f253e /config/CMakeLists.txt | |
parent | 7815a4d67f1fbaaa198737a14f3aafab8f1bad61 (diff) | |
download | tde-style-baghira-d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc.tar.gz tde-style-baghira-d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc.zip |
Conversion to the cmake building system.
Added a man page taken from the Debian packaging system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Resolve issues that occurred during CMake conversion.
Concatenate the commands for generating pixmaps.h with CMake
so that there is no need to use the GNU specific sed option -i.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'config/CMakeLists.txt')
-rw-r--r-- | config/CMakeLists.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt new file mode 100644 index 0000000..fb51d78 --- /dev/null +++ b/config/CMakeLists.txt @@ -0,0 +1,61 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIBRARY_DIRS} + ${X11_LIBRARY_DIRS} +) + + +##### pixmaps.h (header) + +set( _pics ${CMAKE_SOURCE_DIR}/imagebase/button-base + ${CMAKE_SOURCE_DIR}/imagebase/button-shadow + ${CMAKE_SOURCE_DIR}/imagebase/brush-me +) + +set( _header pixmaps.h ) + +add_custom_command( + OUTPUT ${_header} + COMMAND + ${UIC_EXECUTABLE} -embed baghira ${_pics} | + ${SED_EXECUTABLE} + -e 's|void qInitImages_baghira|static void qInitImages_baghira|' + -e 's|void qCleanupImages_baghira|static void qCleanupImages_baghira|' + > ${_header} + DEPENDS ${_pics} +) + + +##### tdestyle_baghira_config (kpart) + +set_source_files_properties( + tdestyle_baghira_config.cpp colordialog.cpp + PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header} +) + + +tde_add_kpart( tdestyle_baghira_config AUTOMOC + + SOURCES + configdialog.ui + help.ui about.ui + tdestyle_baghira_config.cpp + colordialog.cpp + colorpicker.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) |