aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/cpr/cmake/mongoose.CMakeLists.txt
blob: f46a3d4910de7da5d8b81c066f8c2e15f7038376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
cmake_minimum_required(VERSION 3.15)
project(mongoose C)


add_library(mongoose STATIC mongoose.c)
target_include_directories(mongoose PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

if(ENABLE_SSL_TESTS)
    # Enable mongoose SSL
    target_compile_definitions(mongoose PUBLIC MG_ENABLE_OPENSSL)
    target_link_libraries(mongoose PRIVATE OpenSSL::SSL)
endif()