X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=c6459353b62a63f19e757e10e93075961217cd6a;hb=cef18fc6160f8f5055f2617fbe06eb082c2a7bd5;hp=60d7bfacfb37000059e9e2602611c449b5275fbe;hpb=b04e278da5b0a9aa7d5e62bbb40f32f0e51f662d;p=pulseview.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 60d7bfa..c645935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,21 @@ endif(WIN32) find_package(Qt4 REQUIRED) find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) -set(VERSION 0.1.0) +#=============================================================================== +#= Config Header +#------------------------------------------------------------------------------- + +set(PV_VERSION_MAJOR 0) +set(PV_VERSION_MINOR 1) +set(PV_VERSION_MICRO 0) +set(PV_VERSION_STRING + ${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO} +) + +configure_file ( + ${PROJECT_SOURCE_DIR}/config.h.in + ${PROJECT_BINARY_DIR}/config.h +) #=============================================================================== #= Sources @@ -115,7 +129,6 @@ include(${QT_USE_FILE}) #------------------------------------------------------------------------------- add_definitions(${QT_DEFINITIONS}) -add_definitions(-DAPP_VERSION="${VERSION}") #=============================================================================== #= Global Include Directories @@ -123,6 +136,7 @@ add_definitions(-DAPP_VERSION="${VERSION}") include_directories( ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS} )