diff options
author | Jeonghoon Park <jh1979.park@samsung.com> | 2018-04-17 17:36:18 +0900 |
---|---|---|
committer | Jeonghoon Park <jh1979.park@samsung.com> | 2018-04-17 17:36:18 +0900 |
commit | 2c7aaaec965e22476a34cf0dd1b80886729ae388 (patch) | |
tree | 0a4e07c2dd5eafe518deaa84c56c8c3e249173bf /CMakeLists.txt | |
parent | c751608fd8bb87a45c12653c2824c9654dcc79ed (diff) | |
download | tizen-things-daemon-2c7aaaec965e22476a34cf0dd1b80886729ae388.tar.gz tizen-things-daemon-2c7aaaec965e22476a34cf0dd1b80886729ae388.tar.bz2 tizen-things-daemon-2c7aaaec965e22476a34cf0dd1b80886729ae388.zip |
refines build related things
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4637a7e..9b6dc68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,31 +1,4 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(${P_NAME} C) - -SET(INSTALL_EXEC_PREFIX "${INSTALL_PREFIX}/bin") -SET(PROJECT_ROOT_DIR "${CMAKE_SOURCE_DIR}") - -INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED - capi-appfw-service-application - capi-system-info - dlog - libtzplatform-config - glib-2.0 - ecore -) - -FOREACH (flag ${pkgs_CFLAGS}) - SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") -ENDFOREACH(flag) - -SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -Wall -Winline -g -fno-builtin-malloc -fPIE") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") - -CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${P_NAME}.xml ${CMAKE_BINARY_DIR}/${ORG_PREFIX}.${P_NAME}.xml) ADD_SUBDIRECTORY(daemon) -ADD_SUBDIRECTORY(workers) - -#install -INSTALL(FILES ${CMAKE_BINARY_DIR}/${ORG_PREFIX}.${P_NAME}.xml DESTINATION /usr/share/packages) +ADD_SUBDIRECTORY(lib) |