forked from ohwgiles/focal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (37 loc) · 951 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
project(focal)
cmake_minimum_required(VERSION 2.8)
add_definitions(-D_GNU_SOURCE)
#set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Werror -Wno-error=pointer-sign")
find_package(PkgConfig REQUIRED)
# GTK3
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
# LibXML2
find_package(LibXml2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIR})
add_definitions(${LIBXML2_DEFINITIONS})
# cURL
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIRS})
add_definitions(${LIBXML2_DEFINITIONS})
# libical
pkg_check_modules(ICAL REQUIRED libical)
include_directories(${ICAL_INCLUDE_DIRS})
# executable
add_executable(${PROJECT_NAME}
caldav-client.c
calendar.c
event-panel.c
main.c
remote-calendar.c
rpc.c
week-view.c
)
target_link_libraries(${PROJECT_NAME}
${GTK3_LIBRARIES}
${LIBXML2_LIBRARIES}
${CURL_LIBRARIES}
${ICAL_LIBRARIES}
)