@@ -47,28 +47,29 @@ set(DISPLAY_NAME "Celestia")
4747#
4848#
4949#
50- option (ENABLE_CELX "Enable celx scripting, requires Lua library? (Default: on)" ON )
51- option (ENABLE_SPICE "Use spice library? (Default: off)" OFF )
52- option (ENABLE_NLS "Enable interface translation? (Default: on)" ON )
53- option (ENABLE_GTK "Build GTK2 frontend (Unix only)? (Default: off)" OFF )
54- option (ENABLE_QT5 "Build Qt frontend? (Default: on)" ON )
55- option (ENABLE_QT6 "Build Qt6 frontend (Default: off)" OFF )
56- option (ENABLE_SDL "Build SDL frontend? (Default: off)" OFF )
57- option (ENABLE_WIN "Build Windows native frontend? (Default: on)" ON )
58- option (ENABLE_FFMPEG "Support video capture using FFMPEG (Default: off)" OFF )
59- option (ENABLE_MINIAUDIO "Support audio playback using miniaudio (Default: off)" OFF )
60- option (ENABLE_TOOLS "Build different tools? (Default: off)" OFF )
61- option (ENABLE_FAST_MATH "Build with unsafe fast-math compiller option (Default: off)" OFF )
62- option (ENABLE_TESTS "Enable unit tests? (Default: off)" OFF )
63- option (ENABLE_GLES "Build for OpenGL ES 2.0 instead of OpenGL 2.1 (Default: off)" OFF )
64- option (ENABLE_LTO "Enable link time optimizations (Default: off)" OFF )
65- option (USE_GTKGLEXT "Use libgtkglext1 for GTK2 frontend (Default: on)" ON )
66- option (USE_GTK3 "Use Gtk3 in GTK2 frontend (Default: off)" OFF )
67- option (USE_WAYLAND "Use Wayland in Qt frontend (Default: off)" OFF )
68- option (USE_GLSL_STRUCTS "Use structs in GLSL (Default: off)" OFF )
69- option (USE_ICU "Use ICU for UTF8 decoding for text rendering (Default: off)" OFF )
70- option (USE_WIN_ICU "Use Windows SDK's ICU implementation (Default: off)" OFF )
71- option (USE_WEFFCPP "Use the -Weffc++ option when compiling with GCC (Default: off)" OFF )
50+ option (ENABLE_CELX "Enable celx scripting, requires Lua library? (Default: on)" ON )
51+ option (ENABLE_SPICE "Use spice library? (Default: off)" OFF )
52+ option (ENABLE_NLS "Enable interface translation? (Default: on)" ON )
53+ option (ENABLE_GTK "Build GTK2 frontend (Unix only)? (Default: off)" OFF )
54+ option (ENABLE_QT5 "Build Qt frontend? (Default: on)" ON )
55+ option (ENABLE_QT6 "Build Qt6 frontend (Default: off)" OFF )
56+ option (ENABLE_SDL "Build SDL frontend? (Default: off)" OFF )
57+ option (ENABLE_WIN "Build Windows native frontend? (Default: on)" ON )
58+ option (ENABLE_FFMPEG "Support video capture using FFMPEG (Default: off)" OFF )
59+ option (ENABLE_MINIAUDIO "Support audio playback using miniaudio (Default: off)" OFF )
60+ option (ENABLE_TOOLS "Build different tools? (Default: off)" OFF )
61+ option (ENABLE_FAST_MATH "Build with unsafe fast-math compiller option (Default: off)" OFF )
62+ option (ENABLE_TESTS "Enable unit tests? (Default: off)" OFF )
63+ option (ENABLE_GLES "Build for OpenGL ES 2.0 instead of OpenGL 2.1 (Default: off)" OFF )
64+ option (ENABLE_LTO "Enable link time optimizations (Default: off)" OFF )
65+ option (ENABLE_RAY_BASED_DRAGGING "Enable the dragging behavior that based on change of pick rays instead of screen coordinates (Default: off)" OFF )
66+ option (USE_GTKGLEXT "Use libgtkglext1 for GTK2 frontend (Default: on)" ON )
67+ option (USE_GTK3 "Use Gtk3 in GTK2 frontend (Default: off)" OFF )
68+ option (USE_WAYLAND "Use Wayland in Qt frontend (Default: off)" OFF )
69+ option (USE_GLSL_STRUCTS "Use structs in GLSL (Default: off)" OFF )
70+ option (USE_ICU "Use ICU for UTF8 decoding for text rendering (Default: off)" OFF )
71+ option (USE_WIN_ICU "Use Windows SDK's ICU implementation (Default: off)" OFF )
72+ option (USE_WEFFCPP "Use the -Weffc++ option when compiling with GCC (Default: off)" OFF )
7273
7374# Qt requires -fPIC, so build all code with it
7475set (CMAKE_POSITION_INDEPENDENT_CODE ON )
@@ -239,6 +240,10 @@ if(ENABLE_LIBAVIF)
239240 add_definitions (-DUSE_LIBAVIF)
240241endif ()
241242
243+ if (ENABLE_RAY_BASED_DRAGGING)
244+ add_definitions (-DENABLE_RAY_BASED_DRAGGING)
245+ endif ()
246+
242247if (_UNIX)
243248 find_package (PkgConfig)
244249endif ()
0 commit comments