File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.10 )
22
3+ set (VERSION_MAJOR 1)
4+ set (VERSION_MINOR 0)
5+ set (VERSION_PATCH 0)
6+ set (VERSION "${VERSION_MAJOR} .${VERSION_MINOR} .${VERSION_PATCH} " )
7+
38project (vera C CXX )
49
510set (CMAKE_CXX_STANDARD 11)
Original file line number Diff line number Diff line change @@ -315,6 +315,11 @@ endif()
315315# We need this directory, and users of our library will need it too
316316target_include_directories (vera PUBLIC ${INCLUDE_DEPS_FOLDERS} ${INCLUDE_FOLDER} )
317317
318+ # target_compile_definitions(vera PRIVATE DEBUG)
319+ target_compile_definitions (vera PRIVATE VERA_VERSION_MAJOR=${VERSION_MAJOR} )
320+ target_compile_definitions (vera PRIVATE VERA_VERSION_MINOR=${VERSION_MINOR} )
321+ target_compile_definitions (vera PRIVATE VERA_VERSION_PATCH=${VERSION_PATCH} )
322+
318323# IDEs should put the headers in a nice place
319324# source_group( TREE ${INCLUDE_FOLDER}
320325# PREFIX "Header Files" FILES ${ROOT_HEADER})
You can’t perform that action at this time.
0 commit comments