summaryrefslogtreecommitdiffhomepage
path: root/anim/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'anim/CMakeLists.txt')
-rw-r--r--anim/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/anim/CMakeLists.txt b/anim/CMakeLists.txt
index ae4bc542..bc148a06 100644
--- a/anim/CMakeLists.txt
+++ b/anim/CMakeLists.txt
@@ -1,9 +1,12 @@
find_package(OpenCV QUIET REQUIRED COMPONENTS core imgcodecs imgproc)
+find_package(nlohmann_json QUIET REQUIRED)
-file(GLOB sources "*.cpp" CONFIGURE_ARGS)
set(self "${PROJECT_NAME}-anim")
+
+include_directories(SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS})
+link_libraries(opencv_imgproc opencv_imgcodecs opencv_core)
+link_libraries(Magnum::Magnum nlohmann_json::nlohmann_json)
+
+file(GLOB sources "*.cpp" CONFIGURE_ARGS)
add_library(${self} STATIC ${sources})
-target_include_directories(${self} SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS})
-target_link_libraries(${self} opencv_imgproc opencv_imgcodecs opencv_core)
-target_link_libraries(${self} Magnum::Magnum)