1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 MESSAGE("build privilege-checker")
5 SET(CMAKE_VERBOSE_MAKEFILE OFF)
7 SET(BINDIR "${PREFIX}/bin")
9 IF("${USE_AUTOSTART}" STREQUAL "1")
10 ADD_DEFINITIONS("-DUSE_AUTOSTART")
13 ADD_DEFINITIONS("-Werror -Wall -Wextra")
14 ADD_DEFINITIONS("-DCLIENT_IPC_THREAD")
15 ADD_DEFINITIONS("-DUSE_IPC_EPOLL")
17 STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
18 ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
20 ADD_SUBDIRECTORY(capi)
21 ADD_SUBDIRECTORY(tool)
22 ADD_SUBDIRECTORY(test)