vcpkg/ports/gumbo/CMakeLists.txt

33 lines
538 B
CMake
Raw Normal View History

2017-09-03 07:35:59 +08:00
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(visualc/include src)
add_library(gumbo ${gumbo_srcs})
install(
TARGETS gumbo
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
if(NOT DISABLE_INSTALL_HEADERS)
2017-09-03 08:12:39 +08:00
install(FILES src/gumbo.h src/tag_enum.h DESTINATION include)
2017-09-03 07:35:59 +08:00
endif()