1 # Copyright (c) 2014 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 Jacek Pielaszkiewicz (j.pielaszkie@samsung.com)
19 SET(PC_FILE "${SRC_FOLDER}/lib${PROJECT_NAME}.pc")
21 MESSAGE(STATUS "Generating makefile for the libConfig sources...")
22 FILE(GLOB HEADERS "${SRC_FOLDER}/config/*.hpp")
23 FILE(GLOB_RECURSE SRCS "${SRC_FOLDER}" *.hpp *.cpp)
25 ## Setup target ################################################################
27 ## Link libraries #############################################################
28 INCLUDE_DIRECTORIES(${SRC_FOLDER})
29 INCLUDE_DIRECTORIES(SYSTEM ${CONFIG_DEPS_INCLUDE_DIRS})
31 ## Install #####################################################################
32 CONFIGURE_FILE(${PC_FILE}.in "${CMAKE_CURRENT_BINARY_DIR}/${PC_FILE}" @ONLY)
34 INSTALL(FILES ${HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}/sc-tools/config")
35 INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PC_FILE}" DESTINATION "/usr/lib/pkgconfig")