tizen 2.3 release
[framework/web/wearable/wrt-security.git] / tests / ace / CMakeLists.txt
1 #
2 #Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16 # @file        CMakeLists.txt
17 # @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
18 # @version     0.1
19 # @brief
20 #
21 INCLUDE(FindPkgConfig)
22 SET(TARGET_ACE_TEST "wrt-tests-ace")
23
24 PKG_CHECK_MODULES(ACE_TEST_DEP
25     libxml-2.0
26     dpl-test-efl
27     dpl-utils-efl
28     dpl-db-efl
29     gobject-2.0
30     REQUIRED
31     )
32
33 # Set DPL tests sources
34 SET(ACE_TESTS_SOURCES
35     ${PROJECT_SOURCE_DIR}/tests/ace/ace_tests.cpp
36     ${PROJECT_SOURCE_DIR}/tests/ace/loop_control.cpp
37     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite01.cpp
38     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite02.cpp
39     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite03.cpp
40     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite04.cpp
41     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite05.cpp
42     ${PROJECT_SOURCE_DIR}/tests/ace/TestSuite06.cpp
43     ${PROJECT_SOURCE_DIR}/tests/ace/Interfaces.cpp
44     ${PROJECT_SOURCE_DIR}/tests/ace/PEPSingleton.cpp
45     ${PROJECT_SOURCE_DIR}/tests/ace/AttributeSetter.cpp
46     )
47
48 INCLUDE_DIRECTORIES(
49     ${PROJECT_SOURCE_DIR}/src/services/ace
50     ${PROJECT_SOURCE_DIR}/ace/include
51     ${PROJECT_SOURCE_DIR}/tests/ace
52     ${ACE_TEST_DEP_INCLUDE_DIRS}
53     )
54
55 ADD_EXECUTABLE(${TARGET_ACE_TEST} ${ACE_TESTS_SOURCES})
56
57 TARGET_LINK_LIBRARIES(${TARGET_ACE_TEST}
58     ${TARGET_ACE_LIB}
59     ${ACE_TEST_DEP_LIBRARIES}
60     )
61
62 INSTALL(TARGETS ${TARGET_ACE_TEST}
63     DESTINATION bin
64     PERMISSIONS OWNER_READ
65                 OWNER_WRITE
66                 OWNER_EXECUTE
67                 GROUP_READ
68                 GROUP_EXECUTE
69                 WORLD_READ
70                 WORLD_EXECUTE
71     )
72
73 ADD_SUBDIRECTORY(test-configuration)