gpui/tests/auto/plugins/preferences/drives/CMakeLists.txt
2021-09-22 19:03:46 +04:00

29 lines
897 B
CMake

find_package(Qt5 COMPONENTS Core Gui Widgets Test REQUIRED)
find_package(XercesC REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
driveswidgettest.cpp
../../../../../src/plugins/preferences/drives/driveswidget.cpp
../../../../../src/plugins/preferences/drives/drivesschema.cpp
../../../../../src/plugins/preferences/drives/modelbuilder.cpp
)
set(UI_FORMS
../../../../../src/plugins/preferences/drives/driveswidget.ui
)
set(MOC_HEADERS
driveswidgettest.h
../../../../../src/plugins/preferences/drives/driveswidget.h
)
qt5_wrap_ui(UI_SOURCES ${UI_FORMS})
qt5_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})
add_executable(driveswidgettest ${SOURCES} ${MOC_SOURCES} ${UI_SOURCES})
target_link_libraries(driveswidgettest ${GPUI_LIBRARIES} drives-plugin Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test XercesC::XercesC)
add_gpui_test(plugins.driveswidgettest driveswidgettest)