summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool/CMakeLists.txt
blob: b0fa05705ca8d6c09491a07805f8f19bc0da49e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
find_package(OpenCV QUIET)
if(OpenCV_FOUND)
    set(self "floormat-anim-crop-tool")

    include_directories(SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS})
    link_libraries(Corrade::Utility Magnum::Magnum)
    link_libraries(opencv_imgproc opencv_imgcodecs opencv_core)
    link_libraries(floormat-serialize floormat)

    file(GLOB sources "*.cpp" CONFIGURE_ARGS)
    add_executable(${self} ${sources})
    install(TARGETS ${self} RUNTIME DESTINATION "bin")
endif()