1 cmake_minimum_required( VERSION 2.6 )
4 project( libpingcheck CXX )
7 set( VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION} )
9 # set the directory where the executable will be placed
10 set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
12 # set the directory where the make install places the executable
13 #set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} )
15 # enable or disable the full compiler output
16 set( CMAKE_VERBOSE_MAKEFILE OFF )
18 # add definitions, compiler switches, etc.
20 -Werror -Wall -Wextra -Weffc++ -O2 -DVERSION_STRING=${VERSION_STRING}
23 # more build in the source folder
24 add_subdirectory( src )