Commit a34f964d authored by Pierre Aubert's avatar Pierre Aubert
Browse files

First import

parents
[CMake]
Build Directory Count=1
Current Build Directory Index=0
ProjectRootRelative=./
[CMake][CMake Build Directory 0]
Build Directory Path=file:///home/pierre/projects/QT5/PClockTimer/build
Build Type=Debug
CMake Binary=file:///usr/bin/cmake
Environment Profile=
Extra Arguments=
Install Directory=
[CustomDefinesAndIncludes][ProjectPath0]
Defines=\x00\x00\x00\x00
Includes=\x00\x00\x00\x01\x00\x00\x00D\x00/\x00u\x00s\x00r\x00/\x00i\x00n\x00c\x00l\x00u\x00d\x00e\x00/\x00x\x008\x006\x00_\x006\x004\x00-\x00l\x00i\x00n\x00u\x00x\x00-\x00g\x00n\x00u\x00/\x00q\x00t\x005\x00/
Path=.
[Defines And Includes][Compiler]
Name=GCC
Path=gcc
Type=GCC
project(pclocktimer)
cmake_minimum_required(VERSION 2.8)
find_package(Qt5Widgets REQUIRED)
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
message(STATUS "QT_INCLUDES = ${QT_INCLUDES}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
# SET(CMAKE_CXX_FLAGS "-fPIC")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
set(PClockTimer_SRCS PClockTimer.cpp main.cpp)
add_executable(pclocktimer ${PClockTimer_SRCS})
target_link_libraries(pclocktimer ${Qt5Widgets_LIBRARIES})
install(TARGETS pclocktimer RUNTIME DESTINATION bin)
#include "PClockTimer.h"
#include <QLabel>
#include <QMenu>
#include <QMenuBar>
#include <QAction>
PClockTimer::PClockTimer()
{
QLabel* label = new QLabel( this );
label->setText( "Hello World!" );
setCentralWidget( label );
QAction* action = new QAction(this);
action->setText( "Quit" );
connect(action, SIGNAL(triggered()), SLOT(close()) );
menuBar()->addMenu( "File" )->addAction( action );
}
PClockTimer::~PClockTimer()
{}
#include "PClockTimer.moc"
#ifndef PClockTimer_H
#define PClockTimer_H
#include <QMainWindow>
class PClockTimer : public QMainWindow
{
Q_OBJECT
public:
PClockTimer();
virtual ~PClockTimer();
};
#endif // PClockTimer_H
[Project]
Name=PClockTimer
Manager=KDevCMakeManager
VersionControl=
#include <QApplication>
#include "PClockTimer.h"
int main(int argc, char** argv){
QApplication app(argc, argv);
PClockTimer pclocktimer;
pclocktimer.show();
return app.exec();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment