2013-08-16 15:27:19 +00:00
|
|
|
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/
|
2013-08-16 15:27:19 +00:00
|
|
|
../libjson/
|
|
|
|
)
|
|
|
|
link_directories(
|
|
|
|
${Boost_LIBRARY_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
2013-08-16 23:27:12 +00:00
|
|
|
src/main.cpp
|
|
|
|
src/WordReference.cpp
|
2013-08-17 00:50:40 +00:00
|
|
|
src/HttpReader.cpp
|
2013-08-20 17:25:02 +00:00
|
|
|
src/CharConv.cpp
|
2013-08-16 15:27:19 +00:00
|
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${CURL_LIBRARIES}
|
|
|
|
libjson
|
|
|
|
)
|