Skip to content

Commit

Permalink
added icon to final exe!
Browse files Browse the repository at this point in the history
added flag to gtest
  • Loading branch information
Niakr1s committed Nov 23, 2019
1 parent 3ef2238 commit e5ef978
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "-mwindows")

project(rrt LANGUAGES CXX VERSION 0.1.0)

Expand All @@ -11,8 +12,7 @@ set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/a")

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/a")

configure_file(src/version.h.in ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/version.h)

Expand All @@ -36,4 +36,7 @@ add_subdirectory(libs/libdxfrw)
add_subdirectory(libs/sqlite)

add_subdirectory(src)

if (ENABLE_TESTS)
add_subdirectory(tests)
endif()
1 change: 1 addition & 0 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ endif()
add_executable(rrt
${SRC}
${QM_FILES}
resources/rrt.o
)

target_link_libraries(rrt
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
auto updater = new Updater();
updater->startUpdateQuery();

setWindowIcon(QIcon(":/icons/rrt.png"));
setWindowIcon(QIcon(":/icons/rrt.ico"));
setWindowTitle("Rosreestr Tools");

mainWidget_ = new MainWidget();
Expand Down
1 change: 1 addition & 0 deletions src/gui/resources/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<file>newline.png</file>
<file>semicolon.png</file>
<file>database.svg</file>
<file>rrt.ico</file>
</qresource>
</RCC>
Binary file added src/gui/resources/rrt.ico
Binary file not shown.

0 comments on commit e5ef978

Please sign in to comment.