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)
|
2014-06-07 18:44:43 +00:00
|
|
|
add_subdirectory(lib/curlcpp)
|
2014-06-06 20:22:12 +00:00
|
|
|
|
2014-06-06 23:15:06 +00:00
|
|
|
find_package(PugiXML REQUIRED)
|
2014-06-07 18:44:43 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -Wall -Wextra -g -O0 -fno-omit-frame-pointer")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -Wall -Wextra -g -O3 -fomit-frame-pointer")
|
2014-06-06 20:22:12 +00:00
|
|
|
|
|
|
|
include_directories(SYSTEM
|
|
|
|
lib/tidy/include
|
2014-06-06 23:15:06 +00:00
|
|
|
${PUGIXML_INCLUDE_DIR}
|
2014-06-07 18:44:43 +00:00
|
|
|
${CURLCPP_SOURCE_DIR}/include
|
2014-06-06 20:22:12 +00:00
|
|
|
)
|
|
|
|
|
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
|
2014-06-06 23:15:06 +00:00
|
|
|
${PUGIXML_LIBRARIES}
|
2014-06-07 18:44:43 +00:00
|
|
|
curlcpp
|
2014-06-06 20:22:12 +00:00
|
|
|
)
|