forked from Menci/html-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (49 loc) · 1.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# this is the build file for project
# it is autogenerated by the xmake build system.
# do not edit by hand.
# project
cmake_minimum_required(VERSION 3.15.0)
cmake_policy(SET CMP0091 NEW)
project(html-parser LANGUAGES CXX C)
# target
add_library(html-parser STATIC "")
set_target_properties(html-parser PROPERTIES OUTPUT_NAME "html-parser")
set_target_properties(html-parser PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/build/windows/x64/release")
target_include_directories(html-parser PRIVATE
include
include/html-parser
)
target_include_directories(html-parser INTERFACE
include
)
if(MSVC)
target_compile_options(html-parser PRIVATE /EHsc)
else()
target_compile_options(html-parser PRIVATE -fcxx-exceptions)
endif()
set_target_properties(html-parser PROPERTIES CXX_EXTENSIONS OFF)
target_compile_features(html-parser PRIVATE cxx_std_17)
if(MSVC)
set_property(TARGET html-parser PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
target_sources(html-parser PRIVATE
src/ArgumentParser.cc
src/Arguments.cc
src/DOMBuilder.cc
src/DOMInspector.cc
src/HTMLDocument.cc
src/HTMLEntities.cc
src/Lexer.cc
include/html-parser/ArgumentParser.h
include/html-parser/Arguments.h
include/html-parser/DOM.h
include/html-parser/DOMBuilder.h
include/html-parser/DOMInspector.h
include/html-parser/HTMLDocument.h
include/html-parser/HTMLEntities.h
include/html-parser/Lexer.h
include/html-parser/TerminalColor.h
include/html-parser/Token.h
src/macros.h
)