2
0

cycodebase.cmake 578 B

123456789101112131415161718
  1. if(TARGET cycodebase::cycodebase)
  2. return()
  3. endif()
  4. FetchContent_Declare(
  5. cyCodeBase
  6. GIT_REPOSITORY https://github.com/cemyuksel/cyCodeBase/
  7. GIT_TAG e36f3cffca65eb12a8a071f0443128b7de6ed75d
  8. )
  9. FetchContent_Populate(cyCodeBase)
  10. add_library(cyCodeBase_interface INTERFACE)
  11. target_include_directories(cyCodeBase_interface INTERFACE ${cycodebase_SOURCE_DIR})
  12. if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|i[3-6]86"))
  13. target_compile_definitions(cyCodeBase_interface INTERFACE CY_NO_INTRIN_H)
  14. endif()
  15. add_library(cyCodeBase::cyCodeBase ALIAS cyCodeBase_interface)