From: Guilherme Maciel Ferreira Date: Tue, 22 Feb 2011 14:47:51 +0000 (+0100) Subject: Project name #define is sent to source code in compile time X-Git-Tag: v1.0~195 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c3535345a31ed48aebcdc148def34978060048f0;p=pingcheck Project name #define is sent to source code in compile time --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ddab70..877ebe6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,12 @@ set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) # enable or disable the full compiler output set( CMAKE_VERBOSE_MAKEFILE OFF ) +set( CMAKE_BUILD_TYPE Debug ) + # add definitions, compiler switches, etc. add_definitions( -Werror -Wall -Wextra -Weffc++ -O2 -DVERSION_STRING=${VERSION_STRING} + -DPROJECT_NAME=\"${PROJECT_NAME}\" ) # more build in the source folder