65 lines
2.3 KiB
CMake
65 lines
2.3 KiB
CMake
SET( SUPPORT_SRCS
|
|
action.cpp
|
|
actioncollection.cpp
|
|
fancytabwidget.cpp
|
|
messagewidget.cpp
|
|
icon.cpp
|
|
lineedit.cpp
|
|
gtkstyle.cpp
|
|
utils.cpp
|
|
spinner.cpp
|
|
messagebox.cpp
|
|
inputdialog.cpp
|
|
thread.cpp
|
|
)
|
|
|
|
SET( SUPPORT_MOC_HDRS
|
|
action.h
|
|
actioncollection.h
|
|
fancytabwidget.h
|
|
messagewidget.h
|
|
thread.h
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
SET( SUPPORT_SRCS ${SUPPORT_SRCS} onoffbutton.cpp spinbox.cpp windowmanager.cpp gtkproxystyle.cpp combobox.cpp)
|
|
SET( SUPPORT_MOC_HDRS ${SUPPORT_MOC_HDRS} spinbox.h windowmanager.h gtkproxystyle.h osthumb.h)
|
|
if (ENABLE_OVERLAYSCROLLBARS)
|
|
add_definitions(-DENABLE_OVERLAYSCROLLBARS)
|
|
SET( SUPPORT_SRCS ${SUPPORT_SRCS} osthumb.cpp)
|
|
SET( SUPPORT_MOC_HDRS ${SUPPORT_MOC_HDRS} osthumb.h)
|
|
endif (ENABLE_OVERLAYSCROLLBARS)
|
|
install(FILES ambiance.css radiance.css DESTINATION ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}/themes)
|
|
endif (NOT WIN32)
|
|
|
|
if (ENABLE_KDE_SUPPORT )
|
|
macro_ensure_version("4.7.0" ${KDE_VERSION} KDE_VERSION_47)
|
|
if (NOT KDE_VERSION_47)
|
|
SET( SUPPORT_SRCS ${SUPPORT_SRCS} kmessagewidget.cpp )
|
|
SET( SUPPORT_MOC_HDRS ${SUPPORT_MOC_HDRS} kmessagewidget.h )
|
|
endif (NOT KDE_VERSION_47)
|
|
KDE4_ADD_UI_FILES( SUPPORT_UI_HDRS ${SUPPORT_UIS} )
|
|
SET( SUPPORT_SRCS ${SUPPORT_SRCS} dialog.cpp)
|
|
else (ENABLE_KDE_SUPPORT)
|
|
SET( SUPPORT_SRCS ${SUPPORT_SRCS} pathrequester.cpp kmessagewidget.cpp
|
|
dialog.cpp pagewidget.cpp shortcutsmodel.cpp shortcutssettingspage.cpp
|
|
keysequencewidget.cpp )
|
|
SET( SUPPORT_MOC_HDRS ${SUPPORT_MOC_HDRS} pathrequester.h lineedit.h kmessagewidget.h urllabel.h
|
|
dialog.h shortcutsmodel.h shortcutssettingspage.h keysequencewidget.h spinner.h )
|
|
SET( SUPPORT_UIS shortcutssettingspage.ui )
|
|
if (ENABLE_QT5)
|
|
QT5_WRAP_UI( SUPPORT_UI_HDRS ${SUPPORT_UIS} )
|
|
else (ENABLE_QT5)
|
|
QT4_WRAP_UI( SUPPORT_UI_HDRS ${SUPPORT_UIS} )
|
|
endif (ENABLE_QT5)
|
|
endif (ENABLE_KDE_SUPPORT)
|
|
|
|
if (ENABLE_QT5)
|
|
QT5_WRAP_CPP( SUPPORT_MOC_SRCS ${SUPPORT_MOC_HDRS} )
|
|
else (ENABLE_QT5)
|
|
QT4_WRAP_CPP( SUPPORT_MOC_SRCS ${SUPPORT_MOC_HDRS} )
|
|
endif (ENABLE_QT5)
|
|
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${QTINCLUDES} )
|
|
add_library( support STATIC ${SUPPORT_MOC_SRCS} ${SUPPORT_SRCS} ${SUPPORT_UI_HDRS} )
|