Commit | Line | Data |
---|---|---|
4c2fe1f1 GMF |
1 | cmake_minimum_required( VERSION 2.6 ) |
2 | ||
ced28dc7 GMF |
3 | # project definitions |
4 | project( libpingcheck CXX ) | |
4c2fe1f1 GMF |
5 | set( MAJOR_VERSION 0 ) |
6 | set( MINOR_VERSION 1 ) | |
7 | set( VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION} ) | |
4ea9706c | 8 | |
4ea9706c GMF |
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 | ||
4c2fe1f1 GMF |
15 | # enable or disable the full compiler output |
16 | set( CMAKE_VERBOSE_MAKEFILE OFF ) | |
17 | ||
c3535345 GMF |
18 | set( CMAKE_BUILD_TYPE Debug ) |
19 | ||
4c2fe1f1 | 20 | # add definitions, compiler switches, etc. |
2d591235 GMF |
21 | add_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 | 27 | add_subdirectory( src ) |