1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT(org.tizen.inputdelegator CXX C)
4 INCLUDE(GNUInstallDirs)
8 SET(VERSION ${VERSION_MAJOR}.0.0)
10 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
11 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -fPIE")
12 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -fPIE")
13 SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -fPIE")
14 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -fPIE")
15 SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -fPIE")
16 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
18 ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))")
23 ADD_CUSTOM_TARGET(w-input-selector.edj
25 -id ${CMAKE_SOURCE_DIR}/edje/images
26 ${CMAKE_SOURCE_DIR}/res/edje/w-input-selector.edc
27 ${CMAKE_BINARY_DIR}/res/edje/w-input-selector.edj
28 DEPENDS ${CMAKE_SOURCE_DIR}/res/edje/w-input-selector.edc)
30 ADD_DEPENDENCIES(inputdelegator w-input-selector.edj)
32 ADD_CUSTOM_TARGET(w-input-stt.edj
34 -id ${CMAKE_SOURCE_DIR}/edje/images
35 ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt.edc
36 ${CMAKE_BINARY_DIR}/res/edje//w-input-stt.edj
37 DEPENDS ${CMAKE_SOURCE_DIR}/res/edje//w-input-stt.edc)
39 ADD_DEPENDENCIES(inputdelegator w-input-stt.edj)
41 ADD_CUSTOM_TARGET(w-input-stt-button.edj
43 -id ${CMAKE_SOURCE_DIR}/edje/images
44 ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt-button.edc
45 ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj
46 DEPENDS ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt-button.edc)
48 ADD_DEPENDENCIES(inputdelegator w-input-stt-button.edj)
50 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-selector.edj
52 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt.edj
54 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj
57 FILE(GLOB_RECURSE W_INPUT_SELECTOR_IMAGES "${CMAKE_SOURCE_DIR}/res/images/*.png")
58 INSTALL(FILES ${W_INPUT_SELECTOR_IMAGES} DESTINATION res/images)
59 INSTALL(FILES ${CMAKE_SOURCE_DIR}/shared/res/w-input-selector.png DESTINATION shared/res)