2014-06-06 18:24:24 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
2014-06-06 20:22:12 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
2014-06-06 18:24:24 +00:00
|
|
|
project(scraper CXX)
|
|
|
|
|
2014-06-06 20:22:12 +00:00
|
|
|
add_subdirectory(lib/tidy)
|
|
|
|
|
|
|
|
find_package(LibXML++ REQUIRED)
|
|
|
|
find_package(LibXml2 REQUIRED)
|
|
|
|
#find_package(CURL REQUIRED)
|
|
|
|
#${CURL_INCLUDE_DIR}
|
|
|
|
#${CURL_LIBRARIES}
|
|
|
|
|
|
|
|
include_directories(SYSTEM
|
|
|
|
lib/tidy/include
|
|
|
|
${LibXML++_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
2014-06-06 18:24:24 +00:00
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
src/main.cpp
|
|
|
|
)
|
2014-06-06 20:22:12 +00:00
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
tidy
|
|
|
|
${LibXML++_LIBRARIES}
|
|
|
|
)
|