diff --git a/CMakeLists.txt b/CMakeLists.txt index ba877a9..1e1ea35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ include( CheckIncludeFile ) include( CheckLibraryExists ) include( CheckCSourceCompiles ) include( CheckCXXSourceCompiles ) +include( GNUInstallDirs OPTIONAL ) #### include our cmake modules @@ -35,6 +36,10 @@ include( TDEMacros ) ##### setup install paths +if( CMAKE_INSTALL_LIBDIR ) + tde_setup_install_path( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" ) +endif( ) + include( TDESetupPaths ) tde_setup_paths( ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fb41aa9..c9b5ddc 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -14,7 +14,6 @@ test_big_endian(WORDS_BIGENDIAN) tde_setup_largefiles( ) find_package( TQt ) -find_package( TDE ) ##### check for gcc visibility support @@ -32,6 +31,3 @@ execute_process( OUTPUT_VARIABLE TQT_HEADERS_DIRS OUTPUT_STRIP_TRAILING_WHITESPACE ) -if( TQT_HEADER_DIRS ) - set( TQT_HEADERS_DIRS "${TQT_HEADERS_DIRS}" ) -endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1cf2db8..9db917d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,13 +3,11 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} - ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) link_directories( ${TQT_LIBRARY_DIRS} - ${TDE_LIB_DIR} ) @@ -20,8 +18,8 @@ tde_add_library( ${PROJECT_NAME} SHARED AUTOMOC SOURCES tqca.cpp LINK - tdecore-shared - + ${TQT_LIBRARIES} + VERSION 1.0.0 DESTINATION ${LIB_INSTALL_DIR} @@ -31,7 +29,9 @@ tde_add_library( ${PROJECT_NAME} SHARED AUTOMOC ##### headers install( - FILES ${PROJECT_NAME}.h + FILES + ${PROJECT_NAME}.h + ${PROJECT_NAME}provider.h DESTINATION ${TQT_HEADERS_DIRS} ) diff --git a/src/tqca.cpp b/src/tqca.cpp index bd17094..bfbd78c 100644 --- a/src/tqca.cpp +++ b/src/tqca.cpp @@ -1,6 +1,7 @@ /* - * qca.cpp - Qt Cryptographic Architecture + * tqca.cpp - TQt Cryptographic Architecture * Copyright (C) 2003 Justin Karneges + * Copyright (C) 2010-2020 TDE Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/tqca.h b/src/tqca.h index dc87da1..b5591f8 100644 --- a/src/tqca.h +++ b/src/tqca.h @@ -1,6 +1,7 @@ /* - * qca.h - Qt Cryptographic Architecture + * tqca.h - TQt Cryptographic Architecture * Copyright (C) 2003 Justin Karneges + * Copyright (C) 2010-2020 TDE Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/tqcaprovider.h b/src/tqcaprovider.h index 27ed422..fb66e5c 100644 --- a/src/tqcaprovider.h +++ b/src/tqcaprovider.h @@ -1,6 +1,7 @@ /* - * qcaprovider.h - QCA Plugin API + * tqcaprovider.h - TQCA Plugin API * Copyright (C) 2003 Justin Karneges + * Copyright (C) 2010-2020 TDE Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public