-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (35 loc) · 1.51 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
project(PidginKeePassHTTP)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
set(CPACK_GENERATOR "DEB;RPM;TGZ")
set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(CPACK_PACKAGE_CONTACT "Adam Delman <[email protected]>")
set(PIDGINKEEPASSHTTP_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
set(PIDGINKEEPASSHTTP_VERSION_FULL "${PIDGINKEEPASSHTTP_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${PIDGINKEEPASSHTTP_VERSION_FULL}")
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${PIDGINKEEPASSHTTP_VERSION_FULL}")
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
include(CPack)
include(FindPkgConfig)
find_package(PkgConfig REQUIRED)
find_package(GLIB2 REQUIRED)
include_directories(${GLIB_INCLUDE_DIRS})
find_package(LibSoup REQUIRED)
include_directories(${LIBSOUP_INCLUDE_DIRS})
find_package(GTK2 REQUIRED)
include_directories(${GTK2_INCLUDE_DIRS})
find_package(GDK2 REQUIRED)
include_directories(${GDK2_INCLUDE_DIRS})
find_package(JSON-C REQUIRED)
include_directories(${JSON-C_INCLUDE_DIRS})
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIRS})
find_package(LibPurple REQUIRED)
include_directories(${LIBPURPLE_INCLUDE_DIRS})
configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
add_subdirectory(plugin)