-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
55 lines (41 loc) · 857 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set(TARGET soft-pkcs)
project(${TARGET})
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions(-DDEBUG)
endif()
add_definitions(-DDEBUG)
add_definitions("-std=c++0x -std=c++11")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Boost REQUIRED COMPONENTS
system
filesystem
)
include_directories(${Boost_INCLUDE_DIRS})
#add_subdirectory(3rdparty//qtwebdav)
set(HEADERS
types.h
object.h
soft_token.h
storage.h
tools.h
log.h
attribute.h
)
set(SOURCES
main.cpp
tools.cpp
storage.cpp
soft_token.cpp
object.cpp
log.cpp
attribute.cpp
)
set(DEPS
${Boost_LIBRARIES}
)
add_library(${TARGET} SHARED ${HEADERS} ${SOURCES})
target_link_libraries(${TARGET} ${DEPS})