summaryrefslogblamecommitdiff
path: root/ui/qt5/CMakeLists.txt
blob: 7bf3107714a6eb7f2dd581b023133fb24323b7e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                        
                
                     
                       
                        




                                               

                                            
           

                                               
                                                                                                    

                                                       
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(UI_SOURCES
    horizonwizard.cc
    horizonwizardpage.cc
    horizonhelpwindow.cc
    main.cc

    intropage.cc
    inputpage.cc
    networkingpage.cc
    networkifacepage.cc
    netsimplewifipage.cc

    horizon.qrc)
add_executable(horizon-qt5 ${UI_SOURCES})
target_link_libraries(horizon-qt5 Qt5::Widgets)

install(TARGETS horizon-qt5 DESTINATION bin)

IF(INSTALL)
    pkg_check_modules(XKBFile REQUIRED xkbfile)
    pkg_check_modules(LIBX11 REQUIRED x11)
    target_link_libraries(horizon-qt5 ${LIBUDEV_LIBRARIES} ${LIBX11_LIBRARIES} ${XKBFile_LIBRARIES})
    # add_executable(horizon-run-qt5 ${RUN_QT_SOURCES})
ENDIF(INSTALL)