Commit | Line | Data |
---|---|---|
4545a371 BS |
1 | |
2 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
3 | ||
4 | PROJECT(bpdyndnsd) | |
5 | ||
6 | # if you don't want the full compiler output, remove the following line | |
7 | SET(CMAKE_VERBOSE_MAKEFILE ON) | |
8 | ||
9 | # add definitions, compiler switches, etc. | |
10 | ADD_DEFINITIONS(-Wall -O2) | |
11 | ||
12 | # list all source files here | |
13 | ADD_EXECUTABLE(bin/bpdyndnsd src/main.cpp) | |
14 | ||
15 | # find boost_program_options and link to bpdyndnsd | |
16 | FIND_LIBRARY( BOOST_PROGRAM_OPTIONS libboost_program_options.so ) | |
17 | IF(BOOST_PROGRAM_OPTIONS) | |
18 | MESSAGE(STATUS "Found boost/program_options as ${BOOST_PROGRAM_OPTIONS}") | |
19 | TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_PROGRAM_OPTIONS}) | |
20 | ELSE(BOOST_PROGRAM_OPTIONS) | |
21 | MESSAGE(FATAL_ERROR "Could not find boost/program_options") | |
22 | ENDIF(BOOST_PROGRAM_OPTIONS) |