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

    include_directories(SYSTEM "${OpenCV_INCLUDE_DIRS}")
    link_libraries(Corrade::Utility Magnum::Magnum)
    link_libraries(opencv_imgproc opencv_imgcodecs opencv_core)
    link_libraries(nlohmann_json::nlohmann_json)

    file(GLOB sources "*.cpp" CONFIGURE_ARGS)

    add_executable(${self} "${sources}")
    target_link_libraries(${self} PRIVATE floormat-serialize floormat)

    install(TARGETS ${self} RUNTIME DESTINATION "bin")
endif()