437e6ca0a103b7cc8869616f6a89ad41e31fad48
[archive/platform/core/system/libConfig.git] / src / CMakeLists.txt
1 # Copyright (c) 2014 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 #
16 # @file   CMakeLists.txt
17 # @author Jacek Pielaszkiewicz (j.pielaszkie@samsung.com)
18 #
19 SET(PC_FILE "${SRC_FOLDER}/lib${PROJECT_NAME}.pc")
20
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)
24
25 ## Setup target ################################################################
26
27 ## Link libraries #############################################################
28 INCLUDE_DIRECTORIES(${SRC_FOLDER})
29 INCLUDE_DIRECTORIES(SYSTEM ${CONFIG_DEPS_INCLUDE_DIRS})
30
31 ## Install #####################################################################
32 CONFIGURE_FILE(${PC_FILE}.in "${CMAKE_CURRENT_BINARY_DIR}/${PC_FILE}" @ONLY)
33
34 INSTALL(FILES ${HEADERS}                               DESTINATION "${INCLUDE_INSTALL_DIR}/sc-tools/config")
35 INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PC_FILE}" DESTINATION "/usr/lib/pkgconfig")