Skip to content
Permalink
Browse files

porting to qt5: cmake hackery

  • Loading branch information...
mvidner committed Oct 17, 2013
1 parent a7daf1f commit 51123231c3ba71ed143f8c368086e9cda12e6395
Showing with 14 additions and 4 deletions.
  1. +0 −1 .gitignore
  2. +4 −0 CMakeLists.txt
  3. +7 −3 PROJECTINFO.cmake
  4. +3 −0 bootstrap.sh
@@ -39,7 +39,6 @@ Makefile.in
# CMake
CMakeCache.txt
CMakeFiles
CMakeLists.txt
Makefile
cmake_install.cmake
install_manifest.txt
@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 2.8)
include(/usr/share/libyui/buildtools/CMakeLists.common)
qt5_wrap_ui(ui_QHelpDialog.h QHelpDialog.ui)
qt5_wrap_ui(ui_QStyleEditor.h QStyleEditor.ui)
@@ -6,10 +6,14 @@ SET( BASELIB "yui" ) # don't change this

SET( SUBDIRS src ) # set the subdirs where your code is located.
SET( PLUGINNAME "qt" ) # define the your plugin's name, e.g. {gtk, ncurses-pkg, qt-graph}
SET( LIB_DEPS Qt) # define the plugin's dependecies CMake should look for separated with spaces; libyui-internal deps go in the next line
SET( LIB_DEPS Qt5Widgets) # define the plugin's dependecies CMake should look for separated with spaces; libyui-internal deps go in the next line
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
SET( INTERNAL_DEPS Libyui ) # include libyui or it's plugins (if needed), too!
SET( LIB_LINKER QtCore QtGui X11 fontconfig dl pthread ) # define the libs to link against with their -l name for separated with spaces, e.g. pthread dl; include libyui or it's plugins (if needed), too!
#SET( EXTRA_INCLUDES ) # set include-dir which are not picked by CMake automagically here.
SET( LIB_LINKER Qt5Core Qt5Gui Qt5Widgets Qt5Svg X11 fontconfig dl pthread ) # define the libs to link against with their -l name for separated with spaces, e.g. pthread dl; include libyui or it's plugins (if needed), too!
SET( EXTRA_INCLUDES /usr/include/qt5 /usr/include/qt5/QtCore /usr/include/qt5/QtGui /usr/include/qt5/QtWidgets /usr/include/qt5/QtSvg) # set include-dir which are not picked by CMake automagically here.
SET( PROGSUBDIR "" ) # define your programm's name if the plugin is made for it, only. e.g. "YaST2" for {gtk,ncurses,qt}-pkg.
SET( URL "http://github.com/libyui/" )
SET( SUMMARY "Libyui - Qt User Interface" )
@@ -1,6 +1,9 @@
#!/bin/sh
set -e

echo "Skipping bootstrap.sh, CMakeLists.common is included instead"
exit

prefix="/usr"

if [ ! -z $1 ]

0 comments on commit 5112323

Please sign in to comment.
You can’t perform that action at this time.