File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
22
3- project (libscratchcpp LANGUAGES C CXX)
3+ project (libscratchcpp VERSION 0.9.0 LANGUAGES C CXX)
44
55set (CMAKE_INCLUDE_CURRENT_DIR ON )
66set (CMAKE_CXX_STANDARD 17)
@@ -92,6 +92,10 @@ if (LIBSCRATCHCPP_NETWORK_SUPPORT)
9292endif ()
9393
9494target_compile_definitions (scratchcpp PRIVATE LIBSCRATCHCPP_LIBRARY)
95+ target_compile_definitions (scratchcpp PRIVATE LIBSCRATCHCPP_VERSION="${PROJECT_VERSION} " )
96+ target_compile_definitions (scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR} )
97+ target_compile_definitions (scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_MINOR=${PROJECT_VERSION_MINOR} )
98+ target_compile_definitions (scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_PATCH=${PROJECT_VERSION_PATCH} )
9599
96100if (LIBSCRATCHCPP_BUILD_UNIT_TESTS)
97101 enable_testing ()
You can’t perform that action at this time.
0 commit comments