-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
94 lines (76 loc) · 1.72 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
set(TARGET davqt)
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("-std=c++0x -std=c++11")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Boost REQUIRED COMPONENTS
program_options
system
)
include_directories(${Boost_INCLUDE_DIRS})
find_package(Qt4 REQUIRED QtCore QtNetwork QtXml QtGui)
include(${QT_USE_FILE})
add_subdirectory(3rdparty/preferences)
add_subdirectory(3rdparty//qtwebdav)
set(HEADERS
database/database.h
database/db.h
database/entry.h
database/fs/fs.h
storage.h
)
set(MOC
handlers/handlers.h
main_window.h
manager.h
session.h
settings/main_settings.h
settings/merge_settings.h
settings/settings.h
settings/sync_settings.h
tools.h
types.h
updater.h
)
set(SOURCES
database/database.cpp
database/entry.cpp
database/fs/fs.cpp
handlers/handlers.cpp
main.cpp
main_window.cpp
manager.cpp
session.cpp
settings/main_settings.cpp
settings/merge_settings.cpp
settings/sync_settings.cpp
storage.cpp
updater.cpp
tests/test.cpp
)
set(IFACES
main_window.ui
settings/main_settings.ui
settings/merge_settings.ui
settings/sync_settings.ui
)
set(RESOURCES
images.qrc
)
set(DEPS
# ${CMAKE_BINARY_DIR}/lib/libneon.a
# ${CMAKE_BINARY_DIR}/lib/libxml2.a
qtwebdav
neon
)
qt4_wrap_cpp(SOURCES ${MOC})
qt4_wrap_ui(SOURCES ${IFACES})
qt4_add_resources(SOURCES ${RESOURCES})
add_executable(${TARGET} WIN32 ${HEADERS} ${SOURCES})
target_link_libraries(${TARGET} ${Boost_LIBRARIES} ${QT_LIBRARIES} ${DEPS} preferences)