summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-01 19:55:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-01 20:32:13 +0100
commitf9c5ec11383d71504ae59c6084ab7b46c3832a17 (patch)
tree3f97b9bb56768531a8a847ca3b51a55f4bd1a211 /anim-crop-tool
parent03917e76108e3d45e73a93905ffc05423dd672df (diff)
cmake: allow more parallelization
Diffstat (limited to 'anim-crop-tool')
-rw-r--r--anim-crop-tool/CMakeLists.txt10
-rw-r--r--anim-crop-tool/dummy.cc0
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