Add option to execute unittest in building package
[platform/core/uifw/capi-ui-sticker.git] / CMakeLists.txt
index 916ce15..fc4f40e 100755 (executable)
@@ -14,7 +14,7 @@ ADD_DEFINITIONS("-Werror")
 
 ## Include common directory ##
 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/client/inc")
+INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/client")
 
 ## Dependent packages ##
 INCLUDE(FindPkgConfig)
@@ -53,13 +53,11 @@ ADD_SUBDIRECTORY(receiver)
 ENDIF()
 
 ## Test
-IF("${TEST_ENABLE}" STREQUAL "true")
 ENABLE_TESTING()
-SET(UTC_STICKER sticker_unittests)
+SET(UTC_STICKER capi-ui-sticker-unittest)
 ADD_TEST(NAME ${UTC_STICKER} COMMAND ${UTC_STICKER}
                         WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
 ADD_SUBDIRECTORY(tests)
-ENDIF()
 
 ## config ##
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/capi-ui-sticker.info DESTINATION ${TZ_SYS_RO_SHARE}/parser-plugins)