set(PROGRAMS_OCTAVE arnoldi continuesoln findsoln interpsoln svdbasis resolution) foreach(program ${PROGRAMS_OCTAVE}) add_executable(${program} ${program}.cpp octutils.cpp) target_link_libraries(${program} ${extralibs} ${chflowlib} octave) add_dependencies(${program} ${chflowlib}) endforeach(program) install(TARGETS ${CHFLOW_PROGRAMS} DESTINATION bin) install(TARGETS ${PROGRAMS_OCTAVE} DESTINATION bin)