Initial commit on project bpdyndnsd.
[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)