mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 06:07:49 +08:00
5c8b828e07
* Commit a fix to gumbo on linux so that it does include the string change macros by default. * [gumbo] Bump CONTROL file.
35 lines
583 B
CMake
35 lines
583 B
CMake
cmake_minimum_required(VERSION 3.8.0)
|
|
|
|
project(gumbo)
|
|
|
|
set(gumbo_srcs
|
|
src/attribute.c
|
|
src/char_ref.c
|
|
src/error.c
|
|
src/parser.c
|
|
src/string_buffer.c
|
|
src/string_piece.c
|
|
src/tag.c
|
|
src/tokenizer.c
|
|
src/utf8.c
|
|
src/util.c
|
|
src/vector.c
|
|
)
|
|
|
|
include_directories(src)
|
|
if (MSVC)
|
|
include_directories(visualc/include)
|
|
endif (MSVC)
|
|
|
|
add_library(gumbo ${gumbo_srcs})
|
|
|
|
install(
|
|
TARGETS gumbo
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(FILES src/gumbo.h src/tag_enum.h DESTINATION include)
|
|
endif()
|