diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 19:55:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 20:32:13 +0100 |
commit | f9c5ec11383d71504ae59c6084ab7b46c3832a17 (patch) | |
tree | 3f97b9bb56768531a8a847ca3b51a55f4bd1a211 /anim-crop-tool | |
parent | 03917e76108e3d45e73a93905ffc05423dd672df (diff) |
cmake: allow more parallelization
Diffstat (limited to 'anim-crop-tool')
-rw-r--r-- | anim-crop-tool/CMakeLists.txt | 10 | ||||
-rw-r--r-- | anim-crop-tool/dummy.cc | 0 |
2 files changed, 7 insertions, 3 deletions
diff --git a/anim-crop-tool/CMakeLists.txt b/anim-crop-tool/CMakeLists.txt index b0fa0570..8321c0f2 100644 --- a/anim-crop-tool/CMakeLists.txt +++ b/anim-crop-tool/CMakeLists.txt @@ -2,12 +2,16 @@ find_package(OpenCV QUIET) if(OpenCV_FOUND) set(self "floormat-anim-crop-tool") - include_directories(SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS}) + include_directories(SYSTEM ${OpenCV_INCLUDE_DIRS}) link_libraries(Corrade::Utility Magnum::Magnum) link_libraries(opencv_imgproc opencv_imgcodecs opencv_core) - link_libraries(floormat-serialize floormat) + link_libraries(nlohmann_json::nlohmann_json) file(GLOB sources "*.cpp" CONFIGURE_ARGS) - add_executable(${self} ${sources}) + add_library(${self}_o STATIC "${sources}") + + add_executable(${self} dummy.cc) + target_link_libraries(${self} PUBLIC ${self}_o floormat-serialize floormat) + install(TARGETS ${self} RUNTIME DESTINATION "bin") endif() diff --git a/anim-crop-tool/dummy.cc b/anim-crop-tool/dummy.cc new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/anim-crop-tool/dummy.cc |