diff options
author | Andrew Shadura <andrewsh@debian.org> | 2018-04-25 15:38:01 +0200 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2018-04-25 15:38:01 +0200 |
commit | 3259ab99df8d8746a46ca7469635751f604e42fc (patch) | |
tree | 29219f0e5c8ae9a2e099781167592fe8bfa0b5a0 /CMakeLists.txt | |
parent | 61c1a106bd81794f48e4cd85bae129f9270279e8 (diff) |
New upstream version 3.10.4+ds1
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c55cd36..b4be89a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,15 @@ -cmake_minimum_required( VERSION 2.8 ) -project( libdigidoc ) +cmake_minimum_required(VERSION 3.0) +project(libdigidoc VERSION 3.10.4) set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) -set( CMAKE_FIND_ROOT_PATH ${CMAKE_OSX_SYSROOT} ) -set( INSTALL_DOC false CACHE BOOL "Install documentation" ) +set( BUILD_TOOLS YES CACHE BOOL "Build digidoc-tool" ) +set( BUILD_TYPE SHARED CACHE STRING "Build library as SHARED/STATIC" ) +set( SIGNCERT "" CACHE STRING "Common name of certificate to used sign binaries, empty skip signing" ) +set( INSTCERT "" CACHE STRING "Common name of certificate to used sign packages, empty skip signing" ) if( APPLE ) set( FRAMEWORK YES CACHE BOOL "Build library as Mac OS X Framework" ) endif() -include( CheckIncludeFiles ) include( VersionInfo ) include( GNUInstallDirs ) @@ -25,17 +26,15 @@ find_package( PKCS11 ) find_package( ZLIB REQUIRED ) find_package( Iconv ) -if( INSTALL_DOC ) - if( DOXYGEN_FOUND ) - configure_file( ${CMAKE_SOURCE_DIR}/etc/Doxyfile.in Doxyfile @ONLY ) - add_custom_target( docs ALL - ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Generating API documentation with Doxygen" VERBATIM - ) - install( DIRECTORY ${CMAKE_BINARY_DIR}/doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libdigidoc ) - endif() - install( DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libdigidoc PATTERN ".svn" EXCLUDE ) +if( DOXYGEN_FOUND ) + configure_file( ${CMAKE_SOURCE_DIR}/etc/Doxyfile.in Doxyfile @ONLY ) + add_custom_target( docs ALL + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Generating API documentation with Doxygen" VERBATIM + ) + install( DIRECTORY ${CMAKE_BINARY_DIR}/doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR}/libdigidoc ) + install( DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR}/libdigidoc ) endif() configure_file( config.h.cmake config.h ) @@ -52,4 +51,3 @@ if( ICONV_FOUND ) endif() add_subdirectory( libdigidoc ) - |