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

Add icon

parent c9d62ef4
......@@ -19,3 +19,6 @@ target_link_libraries(pclocktimer ${Qt5Widgets_LIBRARIES})
install(TARGETS pclocktimer RUNTIME DESTINATION bin)
add_subdirectory(share)
......@@ -10,6 +10,12 @@
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QHBoxLayout>
#ifdef CMAKE_INSTALL_PREFIX
const QString CLOCK_TIMER_ICON = QString(CMAKE_INSTALL_PREFIX) + QString("/share/PClockTimer/Images/Personnages_films_Archimede_Icon.png");
#else
const QString CLOCK_TIMER_ICON("../share/PClockTimer/Images/Personnages_films_Archimede_Icon.png");
#endif
///PClockTimer constructor
PClockTimer::PClockTimer(){
......@@ -65,7 +71,7 @@ void PClockTimer::initialisationPClockTimer(){
///Init the widgets
void PClockTimer::initialisationWidget(){
setWindowIcon(QIcon(CLOCK_TIMER_ICON));
initialisationButton();
p_lcdNumber = new QLCDNumber;
......
project(pclocktimer)
cmake_minimum_required(VERSION 2.8)
add_subdirectory(PClockTimer)
project(pclocktimer)
cmake_minimum_required(VERSION 2.8)
set(directoriesList Images)
install(DIRECTORY ${directoriesList} DESTINATION share/PClockTimer)
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