# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # @file CMakeLists.txt # @author Krzysztof Jackiewicz (k.jackiewicz@samsung.com) # @version 1.0 # INCLUDE(FindPkgConfig) PKG_CHECK_MODULES(CONFIG_GEN_DEPS libxml-2.0 dpl-efl REQUIRED) SET(CONFIG_GEN_SOURCES config_generator.cpp) INCLUDE_DIRECTORIES(${CONFIG_GEN_DEPS_INCLUDE_DIRS}) ADD_LIBRARY(${TARGET_CONFIG_GEN_LIB} SHARED ${CONFIG_GEN_SOURCES}) SET_TARGET_PROPERTIES(${TARGET_CONFIG_GEN_LIB} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION}) SET_TARGET_PROPERTIES(${TARGET_CONFIG_GEN_LIB} PROPERTIES COMPILE_FLAGS -fPIC) TARGET_LINK_LIBRARIES(${TARGET_CONFIG_GEN_LIB} ${CONFIG_GEN_DEPS_LIBRARIES}) INSTALL(TARGETS ${TARGET_CONFIG_GEN_LIB} DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) INSTALL(FILES config_generator.h DESTINATION include/config_generator)