summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-08-26 02:54:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-08-26 14:17:59 +0200
commit2d8f9f71ba8a1dc140d97b43c66f21a78794f53b (patch)
tree7a11330ba3f4a035bdd74c470d6d64de8130cbf8 /src
parentb691110dd3ef831b33485db214b584bdb70e649e (diff)
downloadtdesshaskpass-2d8f9f71ba8a1dc140d97b43c66f21a78794f53b.tar.gz
tdesshaskpass-2d8f9f71ba8a1dc140d97b43c66f21a78794f53b.zip
Remodel CMake rules according to TDE standards.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt39
1 files changed, 33 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 56dfdc7..344912f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,10 +1,37 @@
-set(ksshaskpass_SRCS
- ksshaskpass.cpp
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### kdbg (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ ksshaskpass.cpp
+ LINK
+ kdeui-shared
+ kio-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
)
-add_executable(ksshaskpass ${ksshaskpass_SRCS})
-target_link_libraries(ksshaskpass ${QT_LIBRARIES} kdeui kwalletclient)
+##### other data
-install(TARGETS ksshaskpass DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
-install(FILES ksshaskpass.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
+if( BUILD_DOC )
+ install(
+ FILES ${PROJECT_NAME}.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+ )
+endif( )