From 83429666492fc89a899c5a4bf4f5a46a8262e986 Mon Sep 17 00:00:00 2001
From: Andreas Schenk <andreas_schenk@hms.harvard.edu>
Date: Thu, 13 Sep 2012 12:27:12 -0400
Subject: [PATCH] fixed installing of ..._ui.py  files

---
 cmake_support/OST.cmake | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cmake_support/OST.cmake b/cmake_support/OST.cmake
index 2b277bbda..e81b30607 100644
--- a/cmake_support/OST.cmake
+++ b/cmake_support/OST.cmake
@@ -437,7 +437,7 @@ endmacro()
 #   Calls pyuic on every input file. The resulting python files are stored in
 #   the variable with name out_files.
 #-------------------------------------------------------------------------------
-macro(ui_to_python LIBNAME STAGEDIR)
+macro(ui_to_python LIBNAME PYMODDIR STAGEDIR)
   set(_input_files ${ARGN})
   add_custom_target("${LIBNAME}_ui" ALL)
   find_program(_PYUIC_EXECUTABLE
@@ -457,9 +457,10 @@ macro(ui_to_python LIBNAME STAGEDIR)
                        COMMAND ${_PYUIC_EXECUTABLE} -o ${_abs_out_file} ${_in_file}
                        VERBATIM DEPENDS ${input_file}
                        )
-    list(APPEND ${out_files} ${_abs_out_file})
+    list(APPEND out_files ${_abs_out_file})
   endforeach()
   compile_py_files(_${LIBNAME} ${STAGEDIR} ${out_files})
+  install(FILES ${out_files} DESTINATION "${LIB_DIR}/${PYMODDIR}")
 endmacro()
 
 #-------------------------------------------------------------------------------
@@ -574,7 +575,7 @@ macro(pymod)
   # build ui files
   #-----------------------------------------------------------------------------
   if (_ARG_UI)
-    ui_to_python(${_LIB_NAME} ${PYMOD_STAGE_DIR} ${_ARG_UI})
+    ui_to_python(${_LIB_NAME} ${PYMOD_DIR} ${PYMOD_STAGE_DIR} ${_ARG_UI})
   endif()  
   #-----------------------------------------------------------------------------
   # compile python files
-- 
GitLab