diff --git a/modules/gui/pymod/CMakeLists.txt b/modules/gui/pymod/CMakeLists.txt
index c62fe901cc7a30482eb5b41da8aa60413efd1393..644ff697b035b1d74247c385d20c38db9e6efde6 100644
--- a/modules/gui/pymod/CMakeLists.txt
+++ b/modules/gui/pymod/CMakeLists.txt
@@ -72,6 +72,12 @@ if (ENABLE_SPNAV)
   )
 endif()
 
+if (ENABLE_SPNAV)
+  list( APPEND OST_GUI_PYMOD_SOURCES
+  export_input.cc
+  )
+endif()
+
 set(OST_GUI_PYMOD_MODULES
   __init__.py
   init_menubar.py