-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
55 lines (43 loc) · 1.13 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
53
54
55
# Build script for GQ written by Henri Hyyryläinen
# This is meant to be used within a cmake project
cmake_minimum_required(VERSION 3.0)
if(UNIX)
# C++14
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wl,--no-undefined -Wl,--no-allow-shlib-undefined")
endif(UNIX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GUMBO REQUIRED gumbo)
include_directories(${GUMBO_INCLUDE_DIRS})
link_directories(${GUMBO_LIBRARY_DIRS})
add_library(GQ SHARED
src/AttributeSelector.cpp
src/AttributeSelector.hpp
src/BinarySelector.cpp
src/BinarySelector.hpp
src/Document.cpp
src/Document.hpp
src/Node.cpp
src/Node.hpp
src/NodeMutationCollection.cpp
src/NodeMutationCollection.hpp
src/Parser.cpp
src/Parser.hpp
src/Selection.cpp
src/Selection.hpp
src/Selector.cpp
src/Selector.hpp
src/Serializer.cpp
src/Serializer.hpp
src/SpecialTraits.cpp
src/SpecialTraits.hpp
src/StrRefHash.hpp
src/TextSelector.cpp
src/TextSelector.hpp
src/TreeMap.cpp
src/TreeMap.hpp
src/UnarySelector.cpp
src/UnarySelector.hpp
src/Util.cpp
src/Util.hpp
)
target_link_libraries(GQ ${GUMBO_LIBRARIES})