Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

45 řádky
2.7 KiB

  1. # Version
  2. Set ( CPPMICROHTTPD_VERSION_MAJOR 1 )
  3. Set ( CPPMICROHTTPD_VERSION_MINOR 0 )
  4. Set ( CPPMICROHTTPD_VERSION_PATCH 0 )
  5. Set ( CPPMICROHTTPD_VERSION_BUILD 0 )
  6. Set ( CPPMICROHTTPD_VERSION_HASH "" )
  7. Set ( CPPMICROHTTPD_VERSION_BEHIND 0 )
  8. Set ( CPPMICROHTTPD_VERSION_DIRTY 0 )
  9. # Git Version
  10. If ( CPPMICROHTTPD_USE_GIT_VERSION )
  11. Include ( git_helper OPTIONAL RESULT_VARIABLE HAS_GIT_HELPER )
  12. If ( HAS_GIT_HELPER )
  13. GitGetVersion ( ${CMAKE_CURRENT_LIST_DIR}/..
  14. CPPMICROHTTPD_VERSION_MAJOR
  15. CPPMICROHTTPD_VERSION_MINOR
  16. CPPMICROHTTPD_VERSION_PATCH
  17. CPPMICROHTTPD_VERSION_BUILD
  18. CPPMICROHTTPD_VERSION_HASH
  19. CPPMICROHTTPD_VERSION_BEHIND
  20. CPPMICROHTTPD_VERSION_DIRTY )
  21. EndIf ( )
  22. EndIf ( )
  23. # Strings
  24. Set ( CPPMICROHTTPD_VERSION_SHORT "${CPPMICROHTTPD_VERSION_MAJOR}.${CPPMICROHTTPD_VERSION_MINOR}" )
  25. Set ( CPPMICROHTTPD_VERSION "${CPPMICROHTTPD_VERSION_SHORT}.${CPPMICROHTTPD_VERSION_PATCH}.${CPPMICROHTTPD_VERSION_BUILD}" )
  26. Set ( CPPMICROHTTPD_VERSION_COMPLETE "${CPPMICROHTTPD_VERSION}" )
  27. Set ( CPPMICROHTTPD_NAME "cppmicrohttpd-${CPPMICROHTTPD_VERSION_SHORT}" )
  28. Set ( CPPMICROHTTPD_OUTPUTNAME "cppmicrohttpd" )
  29. If ( CPPMICROHTTPD_VERSION_BEHIND )
  30. Set ( CPPMICROHTTPD_VERSION_COMPLETE "${CPPMICROHTTPD_VERSION_COMPLETE}+${CPPMICROHTTPD_VERSION_BEHIND}" )
  31. EndIf ( )
  32. # Install directories
  33. Set ( CPPMICROHTTPD_INSTALL_DIR_INCLUDE "include/${CPPMICROHTTPD_NAME}" )
  34. Set ( CPPMICROHTTPD_INSTALL_DIR_LIB "lib" )
  35. Set ( CPPMICROHTTPD_INSTALL_DIR_SHARE "share/${CPPMICROHTTPD_NAME}" )
  36. # C Standard
  37. Set ( CMAKE_C_STANDARD 11 )
  38. Set ( CMAKE_CXX_STANDARD 17 )
  39. Set ( CMAKE_C_STANDARD_REQUIRED ON )
  40. Set ( CMAKE_CXX_STANDARD_REQUIRED ON )