I'm glad we're moving towards Qt5!
But is it possible to control properties of dbus interfaces and adaptors?
Look at lxqt-globalkeys/config/CMakeLists.txt
and lxqt-globalkeys/daemon/CMakeLists.txt to see what I mean.
Search for `set_source_files_properties` there.
Cheers,
Kuzma
On 22 May 2014 10:22, Luís Pereira <luis.artur.pere...@gmail.com> wrote:
> Hi everybody:
>
> I wrote two CMake modules to help in the effort of building Qt4 and
> Qt5 projects from the same source.
> Today I had the time and polished it a little bit. IMO they are now
> usable. There's an sample that shows how to use the modules.
>
> It might be helpful in the task of porting LXQt to Qt5. Comments are
> welcome.
> The repo are at: https://github.com/luis-pereira/qtxmodules
>
> The sample project CMakeLists.txt:
> project(sample-project)
> cmake_minimum_required(VERSION 2.6.2)
>
> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
> "${CMAKE_CURRENT_SOURCE_DIR}/../..")
>
> include(FindQtX)
>
> FindQtX(
> QT4_MINIMUM_REQUIRED 4.8.1
> QT5_MINIMUM_REQUIRED 5.0.1
> QT4_MODULES Gui
> QT5_MODULES Widgets
> COMMON_MODULES Core DBus
> )
>
> set(CMAKE_INCLUDE_CURRENT_DIR ON)
> set(CMAKE_VERBOSE_MAKEFILE ON)
>
> set(UI_FILES
> dialog.ui
> )
>
> set(MOC_FILES
> dialog.h
> )
>
> set(HEADER_FILESproject(sample-project)
> cmake_minimum_required(VERSION 2.6.2)
>
> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
> "${CMAKE_CURRENT_SOURCE_DIR}/../..")
>
> include(FindQtX)
>
> FindQtX(
> QT4_MINIMUM_REQUIRED 4.8.1
> QT5_MINIMUM_REQUIRED 5.0.1
> QT4_MODULES Gui
> QT5_MODULES Widgets
> COMMON_MODULES Core DBus
> )
>
> set(CMAKE_INCLUDE_CURRENT_DIR ON)
> set(CMAKE_VERBOSE_MAKEFILE ON)
>
> set(UI_FILES
> dialog.ui
> )
>
> set(MOC_FILES
> dialog.h
> )
>
> set(HEADER_FILES
> dialog.h
> )
>
> set(CPP_FILES
> main.cpp
> dialog.cpp
> )
>
>
> qtx_wrap_cpp(MOC_SOURCES ${MOC_FILES})
> qtx_wrap_ui(UI_HEADERS ${UI_FILES})
> qtx_add_dbus_interface(CPP_FILES
> org.freedesktop.Notifications.xml
> notifications_interface
> )
>
> add_executable(sample-project
> ${CPP_FILES}
> ${UI_HEADERS}
> ${MOC_SOURCES}
> dialog.h
> )
>
> set(CPP_FILES
> main.cpp
> dialog.cpp
> )
>
>
> qtx_wrap_cpp(MOC_SOURCES ${MOC_FILES})
> qtx_wrap_ui(UI_HEADERS ${UI_FILES})
> qtx_add_dbus_interface(CPP_FILES
> org.freedesktop.Notifications.xml
> notifications_interface
> )
>
> add_executable(sample-project
> ${CPP_FILES}
> ${UI_HEADERS}
> ${MOC_SOURCES}
>
>
>
> Regards,
> --
> Luís Pereira
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Razor-qt" group.
> For more options, visit this group at
> http://groups.google.com/group/razor-qt?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Razor-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to razor-qt+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list