tizen 2.4 release
[framework/web/wrt-commons.git] / tests / core / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 # @file        CMakeLists.txt
16 # @author      Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
17 # @version     1.0
18 # @brief
19 #
20
21 #
22 # Test files
23 #
24 # Define all DPL tests sources.
25 # Runner is responsible for runnint it all and
26 # generating proper output files
27 #
28
29 SET(TARGET_NAME "wrt-commons-tests-core")
30
31 # Set DPL tests sources
32 SET(DPL_TESTS_CORE_SOURCES
33     ${TESTS_DIR}/core/main.cpp
34     ${TESTS_DIR}/core/test_address.cpp
35     ${TESTS_DIR}/core/test_bind.cpp
36     ${TESTS_DIR}/core/test_binary_queue.cpp
37     ${TESTS_DIR}/core/test_foreach.cpp
38     ${TESTS_DIR}/core/test_log_unhandled_exception.cpp
39     ${TESTS_DIR}/core/test_once.cpp
40     ${TESTS_DIR}/core/test_serialization.cpp
41     ${TESTS_DIR}/core/test_scoped_close.cpp
42     ${TESTS_DIR}/core/test_scoped_dir.cpp
43     ${TESTS_DIR}/core/test_scoped_fclose.cpp
44     ${TESTS_DIR}/core/test_scoped_free.cpp
45     ${TESTS_DIR}/core/test_semaphore.cpp
46     ${TESTS_DIR}/core/test_static_block.cpp
47     ${TESTS_DIR}/core/test_string.cpp
48     ${TESTS_DIR}/core/test_thread.cpp
49     ${TESTS_DIR}/core/test_type_list.cpp
50     ${TESTS_DIR}/core/test_zip_input.cpp
51     ${TESTS_DIR}/core/test_scope_guard.cpp
52     ${TESTS_DIR}/core/test_waitable_handle_watch.cpp
53     ${TESTS_DIR}/core/test_single_instance.cpp
54 )
55
56 WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_NAME} ${TARGET_DPL_EFL})
57 WRT_TEST_BUILD(${TARGET_NAME} ${DPL_TESTS_CORE_SOURCES})
58 WRT_TEST_INSTALL(${TARGET_NAME})
59
60 INSTALL(FILES
61         ${TESTS_DIR}/core/data/sample.zip
62         DESTINATION /opt/share/wrt/wrt-commons/tests/core
63     )