# # CMakeLists.txt for testing the Style Plugins by visualizing one # # $Id$ # $HeadURL$ # $Author$ # Created by Mike Wille, SLSE, 2016-05-25 # # Make ${Qt6_Gui} optional if(QT6_GUI_AVAILABLE AND TARGET Qt6::Gui) set(Qt6_Gui ${Qt6_Gui}) else() set(Qt6_Gui "") endif() # Make ${Qt6_Widgets} optional if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets) set(Qt6_Widgets ${Qt6_Widgets}) else() set(Qt6_Widgets "") endif() SET(styleplugintest_SRCS stylePluginTest.cpp stylePluginTest.h style_plugin_test_export.h ) SET(styleplugintest_UICS Ui/stylePluginTestUi.ui ) # Qt6 Autouic search path for UI files in subdirectories set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/Ui) NGL_WRAP_UI(styleplugintest_SRCS ${styleplugintest_UICS}) NGL_ADD_LIBRARY2(WS NO_TRANSLATION stylePluginTest SHARED ${styleplugintest_SRCS} ${styleplugintest_UICS}) if(QT6_GUI_AVAILABLE) NGL_TARGET_LINK_LIBRARIES(stylePluginTest NGLLogger nglapplication LtsUtilsGuiStyleManager LtsWidgets Qt6::Core ${Qt6_Gui} ${Qt6_Widgets} ) endif() #IF(BUILD_TESTING) NGL_ADD_EXECUTABLE(WS NO_TRANSLATION stylePluginTestApp main.cpp) NGL_TARGET_LINK_LIBRARIES(stylePluginTestApp stylePluginTest) #ENDIF(BUILD_TESTING) NGL_INSTALL_TARGET(stylePluginTest)