-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (27 loc) · 918 Bytes
/
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
cmake_minimum_required(VERSION 3.13.4)
project(wikitree)
set(CMAKE_CXX_STANDARD 14)
add_executable(wikitree
main.cpp
node/Node.cpp
node/Node.h
tree/Tree.cpp
tree/Tree.h
web_utils/WebUtils.cpp
web_utils/WebUtils.h
file_utils/FileUtils.cpp
file_utils/FileUtils.h
wikipedia_utils/WikipediaUtils.cpp
wikipedia_utils/WikipediaUtils.h
links_resolver/LinksResolver.cpp
links_resolver/LinksResolver.h
config.h
debug.h)
add_custom_target(create-saved-pages-folder
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/saved_pages)
add_dependencies(wikitree create-saved-pages-folder)
target_link_libraries(wikitree curl)
target_link_libraries(wikitree jsoncpp)
target_link_libraries(wikitree curlpp)
target_link_libraries(wikitree bz2)
target_link_libraries(wikitree pthread)