mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
Valid version check
This commit is contained in:
parent
29f81d1244
commit
d88b747c33
@ -12,12 +12,12 @@ find_package(Qt5Widgets)
|
|||||||
|
|
||||||
if(Qt5Widgets_FOUND)
|
if(Qt5Widgets_FOUND)
|
||||||
|
|
||||||
if( NOT DEFINED EASY_PRODUCT_VERSION_STRING)
|
if(NOT DEFINED EASY_PROGRAM_VERSION_MAJOR)
|
||||||
set(EASY_PROGRAM_VERSION_MAJOR 0)
|
set(EASY_PROGRAM_VERSION_MAJOR 1)
|
||||||
set(EASY_PROGRAM_VERSION_MINOR 0)
|
set(EASY_PROGRAM_VERSION_MINOR 0)
|
||||||
set(EASY_PROGRAM_VERSION_PATCH 0)
|
set(EASY_PROGRAM_VERSION_PATCH 0)
|
||||||
set(EASY_PRODUCT_VERSION_STRING "0.0.0")
|
set(EASY_PRODUCT_VERSION_STRING "1.0.0")
|
||||||
endif()
|
endif(NOT DEFINED EASY_PROGRAM_VERSION_MAJOR)
|
||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DEASY_PROFILER_VERSION_MAJOR=${EASY_PROGRAM_VERSION_MAJOR}
|
-DEASY_PROFILER_VERSION_MAJOR=${EASY_PROGRAM_VERSION_MAJOR}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user