Simplify include directory setting 19/124819/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 12 Apr 2017 11:36:21 +0000 (20:36 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 12 Apr 2017 11:36:21 +0000 (20:36 +0900)
Change-Id: Ia739ed45cf6262ebd9a736c8e32e11f8e50f68ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
CMakeLists.txt
src/client-dummy/CMakeLists.txt
src/client/CMakeLists.txt
src/server-dummy/CMakeLists.txt
src/server/CMakeLists.txt

index ecf914f..1509749 100644 (file)
@@ -8,6 +8,8 @@ SET(INCDIR "${CMAKE_INSTALL_INCLUDEDIR}/context-service")
 INCLUDE_DIRECTORIES(
        ${CMAKE_INSTALL_PREFIX}/${INCDIR}/private
        ${CMAKE_SOURCE_DIR}/src/shared
+       ${CMAKE_SOURCE_DIR}/include
+       ${CMAKE_SOURCE_DIR}/include/private
 )
 
 ADD_DEFINITIONS(-O2 -Wall -fPIC -fdata-sections -ffunction-sections -fvisibility=hidden)
index c5865b0..1e5e9f4 100644 (file)
@@ -2,8 +2,6 @@ SET(target "${PROJECT_NAME}-client")
 
 SET(DEPS "${DEPS} context-common-client")
 
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
-
 FILE(GLOB_RECURSE SRCS *.cpp)
 MESSAGE("Sources: ${SRCS}")
 
index cce6a58..8f551d7 100644 (file)
@@ -2,8 +2,6 @@ SET(target "${PROJECT_NAME}-client-genuine")
 
 SET(DEPS "${DEPS} context-common-client")
 
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
-
 FILE(GLOB_RECURSE SRCS *.cpp ../shared/*.cpp)
 MESSAGE("Sources: ${SRCS}")
 
index efc6f22..1f0fdc0 100644 (file)
@@ -2,8 +2,6 @@ SET(target "${PROJECT_NAME}-server")
 
 SET(DEPS "${DEPS} context-common-server")
 
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/private)
-
 FILE(GLOB_RECURSE SRCS *.cpp)
 MESSAGE("Sources: ${SRCS}")
 
index bd50a93..64a741f 100644 (file)
@@ -2,8 +2,6 @@ SET(target "${PROJECT_NAME}-server-genuine")
 
 SET(DEPS "${DEPS} context-common-server")
 
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/private)
-
 FILE(GLOB_RECURSE SRCS *.cpp ../shared/*.cpp)
 MESSAGE("Sources: ${SRCS}")