Giampiero Salvi wrote: > ADD_CUSTOM_TARGET(maintgt ALL > DEPENDS ${EXECUTABLE_OUTPUT_PATH}/synface${CMAKE_EXECUTABLE_SUFFIX} The last line should be: DEPENDS ${EXECUTABLE_OUTPUT_PATH}/maintgt${CMAKE_EXECUTABLE_SUFFIX} Giampiero