[dali_2.3.49] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / build / tizen / plugins / CMakeLists.txt
1 IF( (NOT UBUNTU_PROFILE) )
2   PKG_CHECK_MODULES(FEEDBACK feedback)
3   PKG_CHECK_MODULES(MMFSOUND mm-sound)
4
5   SET(PLUGIN_TARGET dali2-feedback-plugin )
6
7   MESSAGE(STATUS ${ROOT_SRC_DIR}/plugins )
8   SET( plugin_src_dir ${ROOT_SRC_DIR}/plugins )
9
10   INCLUDE( ${plugin_src_dir}/file.list )
11
12   SET( PLUGIN_SOURCES ${feedback_plugin_src_files})
13
14   ADD_LIBRARY( ${PLUGIN_TARGET} SHARED ${PLUGIN_SOURCES} )
15
16   TARGET_LINK_LIBRARIES( ${PLUGIN_TARGET} PUBLIC
17     ${DLOG_LDFLAGS}
18     ${MMFSOUND_LDFLAGS})
19
20   TARGET_COMPILE_DEFINITIONS( ${PLUGIN_TARGET} PUBLIC
21     -DDALI_SOUND_DIR=\"${dalisounddir}\")
22
23   TARGET_COMPILE_OPTIONS( ${PLUGIN_TARGET} PUBLIC
24     ${DLOG_CFLAGS}
25     ${DALICORE_CFLAGS}
26     ${MMFSOUND_CFLAGS}
27     ${FEEDBACK_CFLAGS}
28     ${DALI_PROFILE_CFLAGS}
29     ${DALI_ADAPTOR_CFLAGS}
30     -I../../../
31     -Wall
32   )
33   # Install plugin resources
34   #SET( dalisounddir ${dataReadOnlyDir}/plugins/sounds/ )
35   SET( dalisounddir ${CMAKE_INSTALL_PREFIX}/../plugins/sounds/ )
36     #EXIT(${dalisounddir})
37   INSTALL( FILES ${dali_plugin_sound_files} DESTINATION ${dalisounddir} )
38   INSTALL( TARGETS ${PLUGIN_TARGET} DESTINATION ${LIB_DIR} )
39 ENDIF()