From 2d8f9f71ba8a1dc140d97b43c66f21a78794f53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 26 Aug 2021 02:54:46 +0200 Subject: Remodel CMake rules according to TDE standards. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/CMakeLists.txt | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'src') 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( ) -- cgit v1.2.1