diff options
author | gregory guy <[email protected]> | 2020-07-16 14:07:49 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-26 11:33:19 +0200 |
commit | cd1471858e29d0d23355a93178e063fd0550d31c (patch) | |
tree | 6a4d62d831ce3a5a9b7cabac8cf578f622fd5b43 /deco/CMakeLists.txt | |
parent | 443bb972fa23026cdd48cfd5976b210c5dd470eb (diff) | |
download | tde-style-baghira-cd1471858e29d0d23355a93178e063fd0550d31c.tar.gz tde-style-baghira-cd1471858e29d0d23355a93178e063fd0550d31c.zip |
Conversion to the cmake building system.
Added a man page taken from the Debian packaging system.
Signed-off-by: gregory guy <[email protected]>
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 <[email protected]>
Signed-off-by: gregory guy <[email protected]>
(cherry picked from commit d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc)
Diffstat (limited to 'deco/CMakeLists.txt')
-rw-r--r-- | deco/CMakeLists.txt | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/deco/CMakeLists.txt b/deco/CMakeLists.txt new file mode 100644 index 0000000..b04b68e --- /dev/null +++ b/deco/CMakeLists.txt @@ -0,0 +1,84 @@ +tde_import( twin ) + +add_subdirectory( config ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} + ${XEXT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIBRARY_DIRS} + ${X11_LIBRARY_DIRS} + ${XEXT_LIBRARY_DIRS} +) + + +##### pixmaps.h (header) + +set( _pics ${CMAKE_SOURCE_DIR}/imagebase/brushed-gradient + ${CMAKE_SOURCE_DIR}/imagebase/brushed-tile + ${CMAKE_SOURCE_DIR}/imagebase/button_jaguar + ${CMAKE_SOURCE_DIR}/imagebase/button_jaguar_down + ${CMAKE_SOURCE_DIR}/imagebase/button_jaguar_menu + ${CMAKE_SOURCE_DIR}/imagebase/button_jaguar_menu_down + ${CMAKE_SOURCE_DIR}/imagebase/button_milk + ${CMAKE_SOURCE_DIR}/imagebase/button_milk_down + ${CMAKE_SOURCE_DIR}/imagebase/button_milk_menu + ${CMAKE_SOURCE_DIR}/imagebase/button_milk_menu_down + ${CMAKE_SOURCE_DIR}/imagebase/button_panther + ${CMAKE_SOURCE_DIR}/imagebase/button_panther_menu + ${CMAKE_SOURCE_DIR}/imagebase/deco_glossy + ${CMAKE_SOURCE_DIR}/imagebase/icon_above + ${CMAKE_SOURCE_DIR}/imagebase/icon_behind + ${CMAKE_SOURCE_DIR}/imagebase/icon_close + ${CMAKE_SOURCE_DIR}/imagebase/icon_help + ${CMAKE_SOURCE_DIR}/imagebase/icon_maximize + ${CMAKE_SOURCE_DIR}/imagebase/icon_minimize + ${CMAKE_SOURCE_DIR}/imagebase/icon_shade + ${CMAKE_SOURCE_DIR}/imagebase/icon_sticky +) + +set( _header pixmaps.h ) + +add_custom_command( + OUTPUT ${_header} + COMMAND ${UIC_EXECUTABLE} + ARGS -o ${_header} -embed baghira ${_pics} + DEPENDS ${_pics} +) + +##### twin3_baghira (kpart) + +set_source_files_properties( + baghiraclient.cc + PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header} +) + +tde_add_kpart( twin3_baghira AUTOMOC + + SOURCES + baghiraclient.cc + LINK + tdecore-shared + tdeui-shared + tdecorations-shared + ${X11_LIBRARIES} + ${XEXT_LIBRARIES} + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE baghira.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin +) |