Warnings Resolved for vpn-service module.
[platform/core/api/vpn-service.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT("capi-vpn-service-pkg")
3
4 ############################# cmake packages ##################################
5
6 INCLUDE(FindPkgConfig)
7
8 ############################# compiler flags ##################################
9
10 SET(CMAKE_INSTALL_PREFIX /usr)
11 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
12 SET(EXEC_PREFIX ${PREFIX}/bin)
13 SET(LIBDIR ${LIB_INSTALL_DIR})
14 SET(INCLUDEDIR ${PREFIX}/include)
15
16 # If supported for the target machine, emit position-independent code,suitable
17 # for dynamic linking and avoiding any limit on the size of the global offset
18 # table. This option makes a difference on the m68k, PowerPC and SPARC.
19 # (BJ: our ARM too?)
20 ADD_DEFINITIONS("-fPIC")
21
22 # Set compiler warning flags
23
24 # ADD_DEFINITIONS("-Werror")                      # Make all warnings into errors.
25 ADD_DEFINITIONS("-Wall")                        # Generate all warnings
26 ADD_DEFINITIONS("-Wextra")                      # Generate even more extra warnings
27
28 STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
29 ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
30 ADD_DEFINITIONS("-DSMACK_ENABLED")
31
32 IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
33     ADD_DEFINITIONS("-DTIZEN_DEBUG_ENABLE")
34     ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
35 ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
36
37 ADD_SUBDIRECTORY(framework)
38 ADD_SUBDIRECTORY(daemon)
39 ADD_SUBDIRECTORY(test)
40