Moving to boost::filesystem
[platform/core/security/vasum.git] / server / 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 Jan Olszak (j.olszak@samsung.com)
18 #
19
20 MESSAGE(STATUS "Generating makefile for the Server...")
21 FILE(GLOB         project_SRCS *.cpp *.hpp)
22 FILE(GLOB_RECURSE common_SRCS ${COMMON_FOLDER}/*.cpp ${COMMON_FOLDER}/*.hpp)
23
24
25 ## Setup target ################################################################
26 SET(SERVER_CODENAME "${PROJECT_NAME}-server")
27 ADD_EXECUTABLE(${SERVER_CODENAME} ${project_SRCS} ${common_SRCS})
28
29
30 ## Link libraries ##############################################################
31 FIND_PACKAGE (Boost COMPONENTS program_options system filesystem)
32
33 PKG_CHECK_MODULES(SERVER_DEPS REQUIRED libvirt libvirt-glib-1.0 json gio-2.0 libsystemd-journal)
34 INCLUDE_DIRECTORIES(${COMMON_FOLDER})
35 INCLUDE_DIRECTORIES(SYSTEM ${SERVER_DEPS_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
36 TARGET_LINK_LIBRARIES(${SERVER_CODENAME} ${SERVER_DEPS_LIBRARIES} ${Boost_LIBRARIES})
37
38
39 ## Subdirectories ##############################################################
40 ADD_SUBDIRECTORY(configs)
41
42
43 ## Install #####################################################################
44 INSTALL(TARGETS ${SERVER_CODENAME} DESTINATION bin)