forked from open-eid/qdigidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (26 loc) · 843 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required( VERSION 2.8 )
project( qdigidoc )
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
set(CMAKE_FIND_ROOT_PATH ${CMAKE_OSX_SYSROOT})
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
include( GNUInstallDirs )
include( VersionInfo )
find_package( PKCS11 )
find_package( LibDigiDocpp REQUIRED )
include_directories( ${LIBDIGIDOCPP_INCLUDE_DIR} )
find_package( Qt5Widgets QUIET HINTS ${QTSDK} )
if( Qt5Widgets_FOUND )
find_package( Qt5LinguistTools HINTS ${QTSDK} )
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 )
else()
find_package( Qt4 4.8.0 COMPONENTS QtCore QtGui QtNetwork REQUIRED )
include( ${QT_USE_FILE} )
endif()
if( APPLE )
add_subdirectory( DigiDocQL )
endif()
include( common/BreakPad.cmake )
add_subdirectory( common )
add_subdirectory( crypto )
add_subdirectory( client )