summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 56082ac..a67107b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -6,6 +6,7 @@ set(CMAKE_BUILD_TYPE Debug)
6find_package(PkgConfig) 6find_package(PkgConfig)
7pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) 7pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
8pkg_check_modules(dpp dpp REQUIRED) 8pkg_check_modules(dpp dpp REQUIRED)
9pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
9 10
10add_subdirectory(vendor/curlcpp) 11add_subdirectory(vendor/curlcpp)
11add_subdirectory(vendor/verbly) 12add_subdirectory(vendor/verbly)
@@ -15,13 +16,15 @@ include_directories(
15 vendor/verbly/lib 16 vendor/verbly/lib
16 ${yaml-cpp_INCLUDE_DIRS} 17 ${yaml-cpp_INCLUDE_DIRS}
17 ${CURLCPP_SOURCE_DIR}/include 18 ${CURLCPP_SOURCE_DIR}/include
18 vendor/json) 19 vendor/json
20 ${GraphicsMagick_INCLUDE_DIRS})
19 21
20link_directories( 22link_directories(
21 ${dpp_LIBRARY_DIRS} 23 ${dpp_LIBRARY_DIRS}
22 ${yaml-cpp_LIBRARY_DIRS}) 24 ${yaml-cpp_LIBRARY_DIRS}
25 ${GraphicsMagick_LIBRARY_DIRS})
23 26
24add_executable(lingo lingo.cpp imagenet.cpp) 27add_executable(lingo lingo.cpp imagenet.cpp)
25set_property(TARGET lingo PROPERTY CXX_STANDARD 17) 28set_property(TARGET lingo PROPERTY CXX_STANDARD 17)
26set_property(TARGET lingo PROPERTY CXX_STANDARD_REQUIRED ON) 29set_property(TARGET lingo PROPERTY CXX_STANDARD_REQUIRED ON)
27target_link_libraries(lingo verbly ${dpp_LIBRARIES} ${yaml-cpp_LIBRARIES} curlcpp curl) 30target_link_libraries(lingo verbly ${dpp_LIBRARIES} ${yaml-cpp_LIBRARIES} curlcpp curl ${GraphicsMagick_LIBRARIES})