King_DuckZ
aa015ddd6a
Tested with: ./scraper //meta[@name] Note that libtidy adds a meta name=generator tag.
24 lines
468 B
CMake
24 lines
468 B
CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
|
project(scraper CXX)
|
|
|
|
add_subdirectory(lib/tidy)
|
|
|
|
find_package(PugiXML REQUIRED)
|
|
#find_package(CURL REQUIRED)
|
|
#${CURL_INCLUDE_DIR}
|
|
#${CURL_LIBRARIES}
|
|
|
|
include_directories(SYSTEM
|
|
lib/tidy/include
|
|
${PUGIXML_INCLUDE_DIR}
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
src/main.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
tidy
|
|
${PUGIXML_LIBRARIES}
|
|
)
|