add test cases for libwebappenc
[platform/core/test/security-tests.git] / src / libwebappenc-tests / CMakeLists.txt
1 # Copyright (c) 2012-2015 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      Dongsun Lee (ds73.lee@samsung.com)
17 # @version     0.1
18 # @brief
19 #
20 INCLUDE(FindPkgConfig)
21 SET(TARGET_WAE_TEST "libwebappenc-tests")
22
23 #dependencies
24 PKG_CHECK_MODULES(TARGET_WAE_DEP
25     libwebappenc
26     REQUIRED
27     )
28
29 #files to compile
30 SET(TARGET_WAE_TEST_SOURCES
31     ${PROJECT_SOURCE_DIR}/src/libwebappenc-tests/libwebappenc-tests.cpp
32     ${PROJECT_SOURCE_DIR}/src/libwebappenc-tests/test_cases.cpp
33     )
34
35 #header directories
36 INCLUDE_DIRECTORIES(SYSTEM
37     ${TARGET_WAE_DEP_INCLUDE_DIRS}
38     )
39
40 INCLUDE_DIRECTORIES(
41     ${PROJECT_SOURCE_DIR}/src/common/
42     )
43
44 #output format
45 ADD_EXECUTABLE(${TARGET_WAE_TEST} ${TARGET_WAE_TEST_SOURCES})
46
47 #linker directories
48 TARGET_LINK_LIBRARIES(${TARGET_WAE_TEST}
49     ${TARGET_WAE_DEP_LIBRARIES}
50     dpl-test-framework
51     tests-common
52     )
53
54 #place for output file
55 INSTALL(TARGETS ${TARGET_WAE_TEST}
56     DESTINATION /usr/bin
57     PERMISSIONS OWNER_READ
58                 OWNER_WRITE
59                 OWNER_EXECUTE
60                 GROUP_READ
61                 GROUP_EXECUTE
62                 WORLD_READ
63                 WORLD_EXECUTE
64     )
65