mongoose.CMakeLists.txt 362 B

123456789101112
  1. cmake_minimum_required(VERSION 3.15)
  2. project(mongoose C)
  3. add_library(mongoose STATIC mongoose.c)
  4. target_include_directories(mongoose PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  5. if(ENABLE_SSL_TESTS)
  6. # Enable mongoose SSL
  7. target_compile_definitions(mongoose PUBLIC MG_ENABLE_OPENSSL)
  8. target_link_libraries(mongoose PRIVATE OpenSSL::SSL)
  9. endif()