Index: qtoctave-0.7.4+dfsg/src/CMakeLists.txt =================================================================== --- qtoctave-0.7.4+dfsg.orig/src/CMakeLists.txt 2008-07-16 19:19:31.000000000 +0200 +++ qtoctave-0.7.4+dfsg/src/CMakeLists.txt 2008-07-16 19:42:08.000000000 +0200 @@ -53,6 +53,20 @@ QT4_WRAP_CPP(moc_variables_list variables_list.h) QT4_WRAP_CPP(moc_window_list window_list.h) +IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) + SET(DISPLACED_FILES + dynamic_help/moc_dynamic_help.cxx + operations/moc_general_menu.cxx + operations/moc_table_plot.cxx + projects/moc_projects.cxx) +ELSE (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) + SET(DISPLACED_FILES + moc_dynamic_help.cxx + moc_general_menu.cxx + moc_table_plot.cxx + moc_projects.cxx) +ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) + add_executable(qtoctave autocomplete.h moc_autocomplete.cxx @@ -64,7 +78,7 @@ moc_command_list.cxx config.h dynamic_help/dynamic_help.h - moc_dynamic_help.cxx + ${DISPLACED_FILES} editor.h moc_editor.cxx generate_menu.h @@ -82,13 +96,10 @@ octave_connection.h moc_octave_connection.cxx operations/general_menu.h - moc_general_menu.cxx operations/table_plot.h - moc_table_plot.cxx operations.h moc_operations.cxx projects/projects.h - moc_projects.cxx search_dialog.h moc_search_dialog.cxx session.h