Renamed variables and constants to stick with company's coding style
[pingcheck] / CMakeLists.txt
CommitLineData
4c2fe1f1
GMF
1cmake_minimum_required( VERSION 2.6 )
2
ced28dc7
GMF
3# project definitions
4project( libpingcheck CXX )
4c2fe1f1
GMF
5set( MAJOR_VERSION 0 )
6set( MINOR_VERSION 1 )
7set( VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION} )
4ea9706c 8
4ea9706c
GMF
9# set the directory where the executable will be placed
10set( 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
4c2fe1f1
GMF
15# enable or disable the full compiler output
16set( CMAKE_VERBOSE_MAKEFILE OFF )
17
c3535345
GMF
18set( CMAKE_BUILD_TYPE Debug )
19
4c2fe1f1 20# add definitions, compiler switches, etc.
2d591235
GMF
21add_definitions(
22 -Werror -Wall -Wextra -Weffc++ -O2 -DVERSION_STRING=${VERSION_STRING}
c3535345 23 -DPROJECT_NAME=\"${PROJECT_NAME}\"
2d591235 24)
4c2fe1f1 25
ced28dc7 26# more build in the source folder
4ea9706c 27add_subdirectory( src )