#---------------------------------------------------------------- # Packages #---------------------------------------------------------------- # Find includes in corresponding build include_directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed set(CMAKE_AUTOMOC ON) # Create code from a list of Qt designer ui files set(CMAKE_AUTOUIC ON) #---------------------------------------------------------------- # Sources #---------------------------------------------------------------- set(radio_sources ampfrm.cpp ampfrm.h mainwindow.cpp mainwindow.h radio.cpp tunerfrm.cpp tunerfrm.h ) #---------------------------------------------------------------- # Target #---------------------------------------------------------------- add_executable(qwt_example_radio ${radio_sources}) target_link_libraries(qwt_example_radio PRIVATE qwt ) #---------------------------------------------------------------- # Deploy #---------------------------------------------------------------- add_custom_command( TARGET qwt_example_radio POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ )