1 # Copyright (c) 2011 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 Lukasz Marek (l.marek@samsung.com)
21 INCLUDE(FindPkgConfig)
22 PKG_CHECK_MODULES(SYS_EFL_TEST_ENGINE
27 # Add core include directories
29 ${DPL_LOG_INCLUDE_DIR}
30 ${DPL_CORE_INCLUDE_DIR}
31 ${DPL_TEST_ENGINE_INCLUDE_DIR}
32 ${DPL_UTILS_INCLUDE_DIR}
33 ${SYS_EFL_TEST_ENGINE_INCLUDE_DIRS}
37 ${SYS_EFL_TEST_ENGINE_LIBRARY_DIRS}
40 # Base EFL based DPL library
41 SET(DPL_EFL_TEST_ENGINE_LIBRARY "${PROJECT_NAME}-test-efl")
43 # Build shared library
45 ADD_LIBRARY(${TARGET_DPL_TEST_ENGINE_EFL} SHARED ${DPL_TEST_ENGINE_SOURCES})
47 TARGET_LINK_LIBRARIES(${TARGET_DPL_TEST_ENGINE_EFL}
49 ${TARGET_DPL_UTILS_EFL}
52 # Target library properties
53 SET_TARGET_PROPERTIES(${TARGET_DPL_TEST_ENGINE_EFL} PROPERTIES
54 SOVERSION ${API_VERSION}
57 OUTPUT_NAME ${DPL_EFL_TEST_ENGINE_LIBRARY})
60 INSTALL(TARGETS ${TARGET_DPL_TEST_ENGINE_EFL}
63 # Install detail headers
64 INSTALL(FILES ${DPL_TEST_ENGINE_HEADERS}
65 DESTINATION include/dpl-efl/dpl/test)
67 # Install pkgconfig script
68 configure_and_install_pkg(dpl-test-efl.pc)