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.
16 # @file CMakeLists.txt
17 # @author Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
21 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(CONFIG_GEN_DEPS
28 SET(CONFIG_GEN_SOURCES
31 INCLUDE_DIRECTORIES(${CONFIG_GEN_DEPS_INCLUDE_DIRS})
33 ADD_LIBRARY(${TARGET_CONFIG_GEN_LIB} SHARED
34 ${CONFIG_GEN_SOURCES})
36 SET_TARGET_PROPERTIES(${TARGET_CONFIG_GEN_LIB} PROPERTIES
37 SOVERSION ${CMAKE_PACKAGE_VERSION})
39 SET_TARGET_PROPERTIES(${TARGET_CONFIG_GEN_LIB} PROPERTIES
42 TARGET_LINK_LIBRARIES(${TARGET_CONFIG_GEN_LIB}
43 ${CONFIG_GEN_DEPS_LIBRARIES})
45 INSTALL(TARGETS ${TARGET_CONFIG_GEN_LIB}
47 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
51 DESTINATION include/config_generator)