1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # @file CMakeLists.txt
16 # @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
24 # Define all DPL tests sources.
25 # Runner is responsible for runnint it all and
26 # generating proper output files
29 SET(TARGET_NAME "dpl-tests-core")
31 # Set DPL tests sources
33 ${PROJECT_SOURCE_DIR}/tests/core/main.cpp
34 ${PROJECT_SOURCE_DIR}/tests/core/test_address.cpp
35 ${PROJECT_SOURCE_DIR}/tests/core/test_binary_queue.cpp
36 ${PROJECT_SOURCE_DIR}/tests/core/test_foreach.cpp
37 ${PROJECT_SOURCE_DIR}/tests/core/test_fast_delegate.cpp
38 ${PROJECT_SOURCE_DIR}/tests/core/test_log_unhandled_exception.cpp
39 ${PROJECT_SOURCE_DIR}/tests/core/test_once.cpp
40 ${PROJECT_SOURCE_DIR}/tests/core/test_serialization.cpp
41 ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_array.cpp
42 ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_close.cpp
43 ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_fclose.cpp
44 ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_free.cpp
45 ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_ptr.cpp
46 ${PROJECT_SOURCE_DIR}/tests/core/test_semaphore.cpp
47 ${PROJECT_SOURCE_DIR}/tests/core/test_shared_ptr.cpp
48 ${PROJECT_SOURCE_DIR}/tests/core/test_string.cpp
49 ${PROJECT_SOURCE_DIR}/tests/core/test_task.cpp
50 ${PROJECT_SOURCE_DIR}/tests/core/test_thread.cpp
51 ${PROJECT_SOURCE_DIR}/tests/core/test_type_list.cpp
52 ${PROJECT_SOURCE_DIR}/tests/core/test_zip_input.cpp
56 ${SYS_EFL_INCLUDE_DIRS}
57 ${DPL_TEST_INCLUDE_DIR}
60 LINK_DIRECTORIES(${SYS_EFL_LIBRARY_DIRS})
62 ADD_EXECUTABLE(${TARGET_NAME} ${DPL_TESTS_SOURCES})
64 TARGET_LINK_LIBRARIES(
68 ${TARGET_DPL_TEST_ENGINE_EFL}
71 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
72 BUILD_WITH_INSTALL_RPATH ON
73 INSTALL_RPATH_USE_LINK_PATH ON
76 INSTALL(TARGETS ${TARGET_NAME}
80 ${PROJECT_SOURCE_DIR}/tests/core/data/sample.zip
81 DESTINATION /opt/apps/wrt/wrt-commons/tests/core