SET(EXEC_PREFIX "${PREFIX}")
SET(VERSION 0.2.56)
+IF("${TEST_ENABLE}" STREQUAL "true")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTEST_ENABLE=${TEST_ENABLE}")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_ENABLE=${TEST_ENABLE}")
+ENDIF()
+
ADD_DEFINITIONS("-Werror")
## Include common directory ##
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/client")
-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/provider")
-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/consumer")
+INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/client/inc")
## Dependent packages ##
INCLUDE(FindPkgConfig)
## API ##
ADD_SUBDIRECTORY(include)
+## Sticker client ##
+ADD_SUBDIRECTORY(client)
+
## Sticker server ##
ADD_SUBDIRECTORY(server)
-## Sticker provider library ##
-ADD_SUBDIRECTORY(provider)
-
-## Sticker consumer library ##
-ADD_SUBDIRECTORY(consumer)
-
## Sticker parser ##
ADD_SUBDIRECTORY(sticker-parser)
ENDIF()
## Test
-IF(NOT DEFINED MINIMUM_BUILD)
+IF("${TEST_ENABLE}" STREQUAL "true")
ENABLE_TESTING()
SET(UTC_STICKER sticker_unittests)
ADD_TEST(NAME ${UTC_STICKER} COMMAND ${UTC_STICKER}
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/unit_tests)
-
-ADD_SUBDIRECTORY(unit_tests)
-ENDIF(NOT DEFINED MINIMUM_BUILD)
+ 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)