X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=b6252fe91563de3b90d882e5a48365dfadfe8fd7;hb=f7951df4a17a5c7e831dd20d43049137b5761e85;hp=60d7bfacfb37000059e9e2602611c449b5275fbe;hpb=b04e278da5b0a9aa7d5e62bbb40f32f0e51f662d;p=pulseview.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 60d7bfa..b6252fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,23 @@ 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_TITLE PulseView) + +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 +131,6 @@ include(${QT_USE_FILE}) #------------------------------------------------------------------------------- add_definitions(${QT_DEFINITIONS}) -add_definitions(-DAPP_VERSION="${VERSION}") #=============================================================================== #= Global Include Directories @@ -123,6 +138,7 @@ add_definitions(-DAPP_VERSION="${VERSION}") include_directories( ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS} ) @@ -172,7 +188,9 @@ install(PROGRAMS pulseview DESTINATION bin/) if(ENABLE_TESTS) - add_definitions(-DBOOST_TEST_DYN_LINK) + add_definitions(pulseview-tests + -DBOOST_TEST_DYN_LINK + ) add_executable(pulseview-test ${pulseview_TEST_SOURCES}