Added Effective C++ warnings level (-Weffc++)
[pingcheck] / CMakeLists.txt
1 cmake_minimum_required( VERSION 2.6 )
2
3 # project definitions
4 project( libpingcheck CXX )
5 set( MAJOR_VERSION 0 )
6 set( MINOR_VERSION 1 )
7 set( VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION} )
8
9 # set the directory where the executable will be placed
10 set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
11
12 # set the directory where the make install places the executable
13 #set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} )
14
15 # enable or disable the full compiler output
16 set( CMAKE_VERBOSE_MAKEFILE OFF )
17
18 # add definitions, compiler switches, etc.
19 add_definitions(
20     -Werror -Wall -Wextra -Weffc++ -O2 -DVERSION_STRING=${VERSION_STRING}
21 )
22
23 # more build in the source folder
24 add_subdirectory( src )