Implemented object serialization of Service objects (first steps).
[bpdyndnsd] / CMakeLists.txt
CommitLineData
4545a371
BS
1
2CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3
4PROJECT(bpdyndnsd)
5
6# if you don't want the full compiler output, remove the following line
7SET(CMAKE_VERBOSE_MAKEFILE ON)
8
9# add definitions, compiler switches, etc.
10ADD_DEFINITIONS(-Wall -O2)
11
12# list all source files here
13ADD_EXECUTABLE(bin/bpdyndnsd src/main.cpp)
14
15# find boost_program_options and link to bpdyndnsd
16FIND_LIBRARY( BOOST_PROGRAM_OPTIONS libboost_program_options.so )
17IF(BOOST_PROGRAM_OPTIONS)
18 MESSAGE(STATUS "Found boost/program_options as ${BOOST_PROGRAM_OPTIONS}")
19 TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_PROGRAM_OPTIONS})
20ELSE(BOOST_PROGRAM_OPTIONS)
21 MESSAGE(FATAL_ERROR "Could not find boost/program_options")
22ENDIF(BOOST_PROGRAM_OPTIONS)
0680036d
BS
23
24# find boost_filesystem and link to bpdyndnsd
25FIND_LIBRARY( BOOST_FILESYSTEM libboost_filesystem.so )
26IF(BOOST_FILESYSTEM)
27 MESSAGE(STATUS "Found boost/filesystem as ${BOOST_FILESYSTEM}")
28 TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_FILESYSTEM})
29ELSE(BOOST_FILESYSTEM)
30 MESSAGE(FATAL_ERROR "Could not find boost/filesystem")
31ENDIF(BOOST_FILESYSTEM)
32
33# find boost_filesystem and link to bpdyndnsd
34FIND_LIBRARY( BOOST_REGEX libboost_regex.so )
35IF(BOOST_REGEX)
36 MESSAGE(STATUS "Found boost/regex as ${BOOST_REGEX}")
37 TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_REGEX})
38ELSE(BOOST_REGEX)
39 MESSAGE(FATAL_ERROR "Could not find boost/regex")
40ENDIF(BOOST_REGEX)