tizen beta release
[framework/web/wrt-commons.git] / build / test / 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 # @file        CMakeLists.txt
16 # @author      Lukasz Marek (l.marek@samsung.com)
17 # @version     1.0
18 # @brief
19 #
20
21 INCLUDE(FindPkgConfig)
22 PKG_CHECK_MODULES(SYS_EFL_TEST_ENGINE
23   appcore-efl
24   REQUIRED)
25
26
27 # Add core include directories
28 INCLUDE_DIRECTORIES(
29     ${DPL_LOG_INCLUDE_DIR}
30     ${DPL_CORE_INCLUDE_DIR}
31     ${DPL_TEST_ENGINE_INCLUDE_DIR}
32     ${SYS_EFL_TEST_ENGINE_INCLUDE_DIRS}
33 )
34
35 LINK_DIRECTORIES(
36     ${SYS_EFL_TEST_ENGINE_LIBRARY_DIRS}
37 )
38
39 # Base EFL based DPL library
40 SET(DPL_EFL_TEST_ENGINE_LIBRARY "${PROJECT_NAME}-test-efl")
41
42 # Build shared library
43
44 ADD_LIBRARY(${TARGET_DPL_TEST_ENGINE_EFL} SHARED  ${DPL_TEST_ENGINE_SOURCES})
45
46 TARGET_LINK_LIBRARIES(${TARGET_DPL_TEST_ENGINE_EFL}
47     ${TARGET_DPL_EFL}
48 )
49
50 # Target library properties
51 SET_TARGET_PROPERTIES(${TARGET_DPL_TEST_ENGINE_EFL} PROPERTIES
52     SOVERSION ${VERSION}
53     CLEAN_DIRECT_OUTPUT 1
54     OUTPUT_NAME ${DPL_EFL_TEST_ENGINE_LIBRARY})
55
56 # Install libraries
57 INSTALL(TARGETS ${TARGET_DPL_TEST_ENGINE_EFL}
58         DESTINATION lib
59         PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
60
61 # Install detail headers
62 INSTALL(FILES ${DPL_TEST_ENGINE_HEADERS}
63         DESTINATION include/dpl-efl/dpl/test)
64
65 # Install pkgconfig script
66 INSTALL(FILES dpl-test-efl.pc
67         DESTINATION lib/pkgconfig)