59 lines
1.5 KiB
CMake
Executable File
59 lines
1.5 KiB
CMake
Executable File
#
|
|
# LightStyle Plugin for Lts Application
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
# Created by Mike Wille, SLSE, 2016-10-14
|
|
#
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Add include path for PluginInterfaces before AUTOMOC runs
|
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Lts/Common)
|
|
|
|
# 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(RmeLightStylePlugin_SRCS
|
|
../Base/styles_color_scheme.h
|
|
rme_light_style.cpp
|
|
rme_light_style.h
|
|
)
|
|
|
|
NGL_ADD_BIG_RESOURCES(RmeLightStylePlugin_QRC resources/rme_light_style.qrc)
|
|
NGL_ADD_LIBRARY(AAR SV WS RmeLightStyleQrc STATIC ${RmeLightStylePlugin_QRC})
|
|
set_target_properties(RmeLightStyleQrc PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
NGL_ADD_LIBRARY(AAR SV WS RmeLightStylePlugin MODULE ${RmeLightStylePlugin_SRCS})
|
|
|
|
# Add include path for PluginInterfaces for both compilation and AUTOMOC
|
|
TARGET_INCLUDE_DIRECTORIES(RmeLightStylePlugin PRIVATE ${CMAKE_SOURCE_DIR}/Lts/Common)
|
|
set_target_properties(RmeLightStylePlugin PROPERTIES AUTOMOC_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/Lts/Common")
|
|
|
|
if(QT6_GUI_AVAILABLE)
|
|
NGL_TARGET_LINK_LIBRARIES(RmeLightStylePlugin
|
|
PRIVATE
|
|
Qt6::Core
|
|
${Qt6_Widgets}
|
|
${Qt6_Gui}
|
|
StylePluginInterface
|
|
TabBarTabStyle
|
|
RmeLightStyleQrc
|
|
)
|
|
endif()
|
|
|
|
NGL_INSTALL_TARGET(RmeLightStylePlugin)
|