Fix 'occurred' typo
[bpdyndnsd] / CMakeLists.txt
index e20c49f..c5e119d 100644 (file)
@@ -1,22 +1,15 @@
-
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
 PROJECT(bpdyndnsd)
 
+set(MAJOR_VERSION 1)
+set(MINOR_VERSION 1)
+set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
+
 # if you don't want the full compiler output, remove the following line
 SET(CMAKE_VERBOSE_MAKEFILE ON)
 
 # add definitions, compiler switches, etc.
 ADD_DEFINITIONS(-Wall -O2)
 
-# list all source files here
-ADD_EXECUTABLE(bin/bpdyndnsd src/main.cpp)
-
-# find boost_program_options and link to bpdyndnsd
-FIND_LIBRARY( BOOST_PROGRAM_OPTIONS libboost_program_options.so )
-IF(BOOST_PROGRAM_OPTIONS)
-    MESSAGE(STATUS "Found boost/program_options as ${BOOST_PROGRAM_OPTIONS}")
-    TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_PROGRAM_OPTIONS})
-ELSE(BOOST_PROGRAM_OPTIONS)
-    MESSAGE(FATAL_ERROR "Could not find boost/program_options")
-ENDIF(BOOST_PROGRAM_OPTIONS)
+add_subdirectory(src)