1 # Copyright (c) 2012-2015 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 Dongsun Lee (ds73.lee@samsung.com)
20 INCLUDE(FindPkgConfig)
21 SET(TARGET_WAE_TEST "libwebappenc-tests")
24 PKG_CHECK_MODULES(TARGET_WAE_DEP
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
36 INCLUDE_DIRECTORIES(SYSTEM
37 ${TARGET_WAE_DEP_INCLUDE_DIRS}
41 ${PROJECT_SOURCE_DIR}/src/common/
45 ADD_EXECUTABLE(${TARGET_WAE_TEST} ${TARGET_WAE_TEST_SOURCES})
48 TARGET_LINK_LIBRARIES(${TARGET_WAE_TEST}
49 ${TARGET_WAE_DEP_LIBRARIES}
54 #place for output file
55 INSTALL(TARGETS ${TARGET_WAE_TEST}
57 PERMISSIONS OWNER_READ