wordreference/wordref/CMakeLists.txt

30 lines
554 B
Text
Raw Normal View History

project (wordreference CXX)
find_package(CURL REQUIRED)
find_package(Boost 1.32.0 REQUIRED program_options)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DJSON_DEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
include_directories(SYSTEM
${CURL_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
include_directories(
2013-08-16 23:27:12 +00:00
src/
../libjson/
)
link_directories(
${Boost_LIBRARY_DIRS}
)
add_executable(${PROJECT_NAME}
2013-08-16 23:27:12 +00:00
src/main.cpp
src/WordReference.cpp
)
target_link_libraries(${PROJECT_NAME}
${Boost_LIBRARIES}
${CURL_LIBRARIES}
libjson
)