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 Soyoung Kim (sy037.kim@samsung.com)
21 # Check required modules
22 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(SYS_ENCRYPTION
29 # Add core include directories
31 ${DPL_LOG_INCLUDE_DIR}
32 ${DPL_CORE_INCLUDE_DIR}
34 ${SYS_ENCRYPTION_INCLUDE_DIRS}
35 ${DPL_ENCRYPTION_INCLUDE_DIR}
39 ${SYS_ENCRYPTION_LIBRARY_DIRS}
42 # Base EFL based DPL library
43 SET(DPL_ENCRYPTION_LIBRARY "${PROJECT_NAME}-encryption")
45 # Build shared library
47 ADD_LIBRARY(${TARGET_DPL_ENCRYPTION} SHARED
48 ${DPL_ENCRYPTION_SOURCES}
51 TARGET_LINK_LIBRARIES(${TARGET_DPL_ENCRYPTION}
52 ${SYS_ENCRYPTION_LIBRARIES}
56 # Target library properties
57 SET_TARGET_PROPERTIES(${TARGET_DPL_ENCRYPTION} PROPERTIES
58 SOVERSION ${API_VERSION}
61 OUTPUT_NAME ${DPL_ENCRYPTION_LIBRARY})
64 INSTALL(TARGETS ${TARGET_DPL_ENCRYPTION}
67 # Install detail headers
69 INSTALL(FILES ${DPL_ENCRYPTION_HEADERS}
70 DESTINATION include/dpl-efl/dpl/encryption)
72 # Install pkgconfig script
73 configure_and_install_pkg(dpl-encryption.pc)