1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT("capi-vpn-service-pkg")
4 ############################# cmake packages ##################################
8 ############################# compiler flags ##################################
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)
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.
20 ADD_DEFINITIONS("-fPIC")
22 # Set compiler warning flags
24 # ADD_DEFINITIONS("-Werror") # Make all warnings into errors.
25 ADD_DEFINITIONS("-Wall") # Generate all warnings
27 ADD_SUBDIRECTORY(framework)
28 ADD_SUBDIRECTORY(daemon)
29 ADD_SUBDIRECTORY(test)