# Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) add_executable(poi-config main.cpp settingsdialog.cpp settingsdialog.h ../src/configuration.h ../src/configuration.cpp ) target_link_libraries(poi-config Qt5::Core Qt5::Widgets ${Boost_LIBRARIES}) install(TARGETS poi-config RUNTIME DESTINATION bin CONFIGURATIONS Release)