2023-07-13 23:36:42 +00:00
|
|
|
# Copyright 2023 Google LLC. All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
# CMake build file for the mongoose library, which is used as a built-in web
|
|
|
|
# server for testing certain HTTP client features of Packager.
|
|
|
|
|
2023-07-14 01:55:48 +00:00
|
|
|
# Mongoose does not have its own CMakeLists.txt, but mongoose is very simple to
|
|
|
|
# build.
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
# Disable integer truncation warnings
|
|
|
|
add_compile_options(/wd4244 /wd4267)
|
|
|
|
endif()
|
2023-07-13 23:36:42 +00:00
|
|
|
|
|
|
|
add_library(mongoose STATIC
|
|
|
|
source/mongoose.c)
|
|
|
|
target_include_directories(mongoose
|
|
|
|
PUBLIC source/)
|