forked from talisein/Stormee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (27 loc) · 992 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
cmake_minimum_required (VERSION 2.6)
project (CAPViewer CXX C)
# The version number
set (CAPViewer_VERSION_MAJOR 0)
set (CAPViewer_VERSION_MINOR 1)
# check libs and packages (headers + lib)
set(CAPViewer_glade_location "\"${CMAKE_INSTALL_PREFIX}/share/CAPViewer/CAPViewer.glade\"")
# std C libraries
#find_package(stdlibs REQUIRED)
# libpthread with pthread.h
#find_package(pthread REQUIRED)
find_package(Git)
if(Git_FOUND)
endif(Git_FOUND)
find_package( Gettext REQUIRED )
find_package( Boost REQUIRED COMPONENTS date_time )
find_package(PkgConfig)
pkg_check_modules(GTKMM3 gtkmm-3.0 REQUIRED)
pkg_check_modules(XML++ libxml++-2.6 REQUIRED)
pkg_check_modules(GTHREAD gthread-2.0 REQUIRED)
pkg_check_modules(STROPHE libstrophe REQUIRED)
pkg_check_modules(CHAMPLAINGTK champlain-gtk-0.12 REQUIRED)
set(CMAKE_BUILD_TYPE debug)
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb3 -O0" )
add_definitions(-Wall -Wextra -pedantic -std=c++0x -D_GNU_SOURCE)
add_subdirectory (glade)
add_subdirectory (src)