- # Version
- Set ( CPPCORE_VERSION_MAJOR 1 )
- Set ( CPPCORE_VERSION_MINOR 0 )
- Set ( CPPCORE_VERSION_PATCH 0 )
- Set ( CPPCORE_VERSION_BUILD 0 )
- Set ( CPPCORE_VERSION_HASH "" )
- Set ( CPPCORE_VERSION_BEHIND 0 )
- Set ( CPPCORE_VERSION_DIRTY 0 )
-
- # Git Version
- If ( CPPCORE_USE_GIT_VERSION )
- Include ( git_helper OPTIONAL RESULT_VARIABLE HAS_GIT_HELPER )
- If ( HAS_GIT_HELPER )
- GitGetVersion ( ${CMAKE_CURRENT_LIST_DIR}/..
- CPPCORE_VERSION_MAJOR
- CPPCORE_VERSION_MINOR
- CPPCORE_VERSION_PATCH
- CPPCORE_VERSION_BUILD
- CPPCORE_VERSION_HASH
- CPPCORE_VERSION_BEHIND
- CPPCORE_VERSION_DIRTY )
- EndIf ( )
- EndIf ( )
-
- # Strings
- Set ( CPPCORE_VERSION_SHORT "${CPPCORE_VERSION_MAJOR}.${CPPCORE_VERSION_MINOR}" )
- Set ( CPPCORE_VERSION "${CPPCORE_VERSION_SHORT}.${CPPCORE_VERSION_PATCH}.${CPPCORE_VERSION_BUILD}" )
- Set ( CPPCORE_VERSION_COMPLETE "${CPPCORE_VERSION}" )
- Set ( CPPCORE_NAME "cppcore-${CPPCORE_VERSION_SHORT}" )
- Set ( CPPCORE_OUTPUTNAME "cppcore" )
- If ( CPPCORE_VERSION_BEHIND )
- Set ( CPPCORE_VERSION_COMPLETE "${CPPCORE_VERSION_COMPLETE}+${CPPCORE_VERSION_BEHIND}" )
- EndIf ( )
-
- # Install directories
- Set ( CPPCORE_INSTALL_DIR_INCLUDE "include/${CPPCORE_NAME}" )
- Set ( CPPCORE_INSTALL_DIR_LIB "lib" )
- Set ( CPPCORE_INSTALL_DIR_SHARE "share/${CPPCORE_NAME}" )
-
- # C Standard
- Set ( CMAKE_C_STANDARD 11 )
- Set ( CMAKE_CXX_STANDARD 17 )
- Set ( CMAKE_C_STANDARD_REQUIRED ON )
- Set ( CMAKE_CXX_STANDARD_REQUIRED ON )
|