diff --git a/rugnux/CMakeLists.txt b/rugnux/CMakeLists.txt index 45d8a0d1..4956f312 100644 --- a/rugnux/CMakeLists.txt +++ b/rugnux/CMakeLists.txt @@ -9,3 +9,14 @@ ADD_LIBRARY(Rugnux STATIC ) TARGET_LINK_LIBRARIES(Rugnux JFJochReader JFJochImageAnalysis JFJochWriter) + +# rugnux is the single offline analysis CLI: full pipeline by default, plus --azint-only +# (azimuthal integration) and --scale (re-scale/merge stored reflections) modes. +ADD_EXECUTABLE(rugnux rugnux_cli.cpp) +TARGET_LINK_LIBRARIES(rugnux Rugnux JFJochReader JFJochImageAnalysis JFJochWriter) +INSTALL(TARGETS rugnux RUNTIME COMPONENT viewer) + +# On Windows this CLI gets getopt/getopt_long from the vendored wingetopt shim (libc has none). +IF (WIN32) + TARGET_LINK_LIBRARIES(rugnux wingetopt) +ENDIF() diff --git a/tools/rugnux_cli.cpp b/rugnux/rugnux_cli.cpp similarity index 99% rename from tools/rugnux_cli.cpp rename to rugnux/rugnux_cli.cpp index 6272f6ae..295ab278 100644 --- a/tools/rugnux_cli.cpp +++ b/rugnux/rugnux_cli.cpp @@ -28,7 +28,7 @@ #include "../image_analysis/scale_merge/ResolutionCutoff.h" #include "../image_analysis/scale_merge/TwinningAnalysis.h" #include "../image_analysis/scale_merge/SearchSpaceGroup.h" -#include "../rugnux/Rugnux.h" +#include "Rugnux.h" // Default rot3d per-frame scale-G smoothing range (XDS DELPHI-like), in degrees of rotation. constexpr double SMOOTH_G_DEFAULT_DEG = 5.0; diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 4194ea3a..6fd80f14 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -8,11 +8,7 @@ ADD_EXECUTABLE(jfjoch_extract_hkl jfjoch_extract_hkl.cpp TARGET_LINK_LIBRARIES(jfjoch_extract_hkl JFJochReader) INSTALL(TARGETS jfjoch_extract_hkl RUNTIME COMPONENT viewer) -# rugnux is the single offline analysis CLI: full pipeline by default, plus --azint-only -# (azimuthal integration) and --scale (re-scale/merge stored reflections) modes. -ADD_EXECUTABLE(rugnux rugnux_cli.cpp) -TARGET_LINK_LIBRARIES(rugnux Rugnux JFJochReader JFJochImageAnalysis JFJochWriter) -INSTALL(TARGETS rugnux RUNTIME COMPONENT viewer) +# rugnux, the single offline analysis CLI, lives in rugnux/ next to its library. # In-place re-compress /entry/data/data of a _data file from bitshuffle/LZ4 to bitshuffle/zstd. ADD_EXECUTABLE(jfjoch_recompress jfjoch_recompress.cpp) @@ -22,7 +18,6 @@ INSTALL(TARGETS jfjoch_recompress RUNTIME COMPONENT viewer) # On Windows these CLIs get getopt/getopt_long from the vendored wingetopt shim (libc has none). IF (WIN32) TARGET_LINK_LIBRARIES(jfjoch_extract_hkl wingetopt) - TARGET_LINK_LIBRARIES(rugnux wingetopt) ENDIF() # Online / hardware tools (broker, FPGA, receiver, detector). They link the non-portable