duckscraper/CMakeLists.txt

28 lines
691 B
Text
Raw Normal View History

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)
add_subdirectory(lib/curlcpp)
2014-06-06 20:22:12 +00:00
find_package(PugiXML REQUIRED)
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
${PUGIXML_INCLUDE_DIR}
${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
${PUGIXML_LIBRARIES}
curlcpp
2014-06-06 20:22:12 +00:00
)