1 # Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 SET(TEST_POPUP_SRCDIR ${TEST_SRCDIR}/popup)
6 SET(BASE_SRCDIR ${PROJECT_SOURCE_DIR}/src)
10 SET(WIN_PKG "ecore-x")
13 SET(WIN_PKG "ecore-wayland")
14 ENDIF(WAYLAND_SUPPORT)
16 PKG_CHECK_MODULES(TARGET_TEST_POPUP_DEPS
25 SET(TARGET_TEST_POPUP_INCS
28 ${TARGET_TEST_POPUP_DEPS_INCLUDE_DIRS}
32 SET(TARGET_TEST_POPUP_LIBS
33 ${TARGET_COMMON_STATIC}
34 ${TARGET_TEST_POPUP_DEPS_LIBRARIES}
38 SET(TARGET_TEST_POPUP_SRCS
39 ${TEST_SRCDIR}/popup/popup.cc
40 ${TEST_SRCDIR}/popup/popup_string.cc
41 ${TEST_SRCDIR}/popup/test_popup.cc
45 SET(TARGET_TEST_POPUP_CFLAGS
50 SET(TARGET_TEST_POPUP_LDFLAGS
56 SET(TARGET_TEST_POPUP "wrt-popup-test")
57 INCLUDE_DIRECTORIES(${TARGET_TEST_POPUP_INCS})
58 ADD_DEFINITIONS(${TARGET_TEST_POPUP_CFLAGS})
59 ADD_EXECUTABLE(${TARGET_TEST_POPUP} ${TARGET_TEST_POPUP_SRCS})
60 TARGET_LINK_LIBRARIES(${TARGET_TEST_POPUP}
61 ${TARGET_TEST_POPUP_LIBS}
62 ${TARGET_TEST_POPUP_LDFLAGS}
66 INSTALL(TARGETS ${TARGET_TEST_POPUP} DESTINATION bin)