diff options
Diffstat (limited to 'gui/CMakeLists.txt')
-rw-r--r-- | gui/CMakeLists.txt | 67 |
1 files changed, 50 insertions, 17 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index ca420fb79..7db12e36e 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -1,26 +1,59 @@ +################################################# +# +# (C) 2021 Michele Calgaro +# Michele (DOT) Calgaro (AT) yahoo.it +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TQT_INCLUDE_DIRS} ) -set(polkit_tqt_gui_SRCS - polkittqt1-gui-action.cpp - polkittqt1-gui-actionbutton.cpp - polkittqt1-gui-actionbuttons.cpp +link_directories( + ${TQT_LIBRARY_DIRS} ) -automoc4_add_library(polkit-tqt-gui-1 SHARED ${polkit_tqt_gui_SRCS}) -target_link_libraries(polkit-tqt-gui-1 - ${TQT_TQTCORE_LIBRARY} - ${TQT_TQTGUI_LIBRARY} - ${TQT_TQTDBUS_LIBRARY} - ${POLKIT_LIBRARIES} - polkit-tqt-core-1 +##### install headers ########################### + +install( FILES + dummy-gui.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### polkit-tqt-gui (shared) ######################### + +tde_add_library( polkit-tqt-gui SHARED AUTOMOC + SOURCES ${polkit_tqt_MOCS} + dummy-gui.cpp + VERSION 0.0.0 + LINK ${TQT_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} ) -set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION} - SOVERSION ${POLKITTQT-1_ABI_VERSION} - DEFINE_SYMBOL MAKE_POLKITTQT1_LIB) -install(TARGETS polkit-tqt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS}) +## set(polkit_tqt_gui_SRCS +## polkittqt1-gui-action.cpp +## polkittqt1-gui-actionbutton.cpp +## polkittqt1-gui-actionbuttons.cpp +## ) +## +## target_link_libraries(polkit-tqt-gui-1 +## ${TQT_TQTCORE_LIBRARY} +## ${TQT_TQTGUI_LIBRARY} +## ${TQT_TQTDBUS_LIBRARY} +## ${POLKIT_LIBRARIES} +## polkit-tqt-core-1 +## ) +## +## set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION} +## SOVERSION ${POLKITTQT-1_ABI_VERSION} +## DEFINE_SYMBOL MAKE_POLKITTQT1_LIB) +## +## install(TARGETS polkit-tqt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS}) |