Fix internal tests
[platform/core/security/cert-svc.git] / tests / 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
16 SET(TARGET_VCOREC_TEST "cert-svc-tests-capi")
17 SET(TARGET_TEST_CERT_SVC_OGIG "cert-svc-tests-orig")
18 SET(TARGET_PKCS12_TEST "cert-svc-tests-pkcs12")
19 SET(TARGET_VCORE_TEST "cert-svc-tests-vcore")
20
21 PKG_CHECK_MODULES(TEST_DEP
22     REQUIRED
23     libpcrecpp
24     )
25
26 SET(TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
27
28 SET(DPL_TEST_SOURCES
29     ${TEST_DIR}/dpl/src/assert.cpp
30     ${TEST_DIR}/dpl/src/binary_queue.cpp
31     ${TEST_DIR}/dpl/src/colors.cpp
32     ${TEST_DIR}/dpl/src/errno_string.cpp
33     ${TEST_DIR}/dpl/src/exception.cpp
34     ${TEST_DIR}/dpl/src/noncopyable.cpp
35     ${TEST_DIR}/dpl/src/singleton.cpp
36     ${TEST_DIR}/dpl/src/test_results_collector.cpp
37     ${TEST_DIR}/dpl/src/test_runner.cpp
38     ${TEST_DIR}/dpl/src/test_runner_child.cpp
39     ${TEST_DIR}/dpl/src/test_runner_multiprocess.cpp
40     ${TEST_DIR}/dpl/src/value_separated_policies.cpp
41     ${TEST_DIR}/dpl/src/value_separated_tokens.cpp
42
43     )
44
45 INCLUDE_DIRECTORIES(
46     SYSTEM
47     ${TEST_DEP_INCLUDE_DIRS}
48     ${PROJECT_SOURCE_DIR}/include
49     ${PROJECT_SOURCE_DIR}/vcore
50     ${TEST_DIR}/dpl/include
51     )
52
53 ADD_SUBDIRECTORY(capi)
54 ADD_SUBDIRECTORY(pkcs12)
55 ADD_SUBDIRECTORY(vcore)
56 ADD_SUBDIRECTORY(cert-svc)