You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
964 B

  1. cmake_minimum_required (VERSION 2.8)
  2. project (BoringSSL)
  3. if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  4. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -ggdb -std=c89")
  5. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -ggdb -std=c++0x")
  6. elseif(MSVC)
  7. # Disable warnings for implicit integer narrowing.
  8. set(CMAKE_C_FLAGS "/wd4267")
  9. endif()
  10. if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
  11. set(ARCH "x86_64")
  12. elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
  13. # cmake reports AMD64 on Windows, but we might be building for 32-bit.
  14. if (CMAKE_CL_64)
  15. set(ARCH "x86_64")
  16. else()
  17. set(ARCH "x86")
  18. endif()
  19. elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
  20. set(ARCH "x86")
  21. elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm")
  22. set(ARCH "arm")
  23. else()
  24. message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR})
  25. endif()
  26. add_subdirectory(crypto)
  27. add_subdirectory(ssl)
  28. add_subdirectory(ssl/test)
  29. add_subdirectory(tool)