Skip to content

Commit

Permalink
cmake: fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChungZH committed May 1, 2020
1 parent 58165d9 commit 9391814
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ endif()

find_package(Qt5 COMPONENTS Widgets REQUIRED)

add_executable(notepanda
if(WIN32)
set(GUI_TYPE WIN32)
endif()

set(SOURCES
src/main.cpp
src/ui/mainwindow.cpp
src/ui/mainwindow.h
Expand All @@ -22,9 +26,13 @@ add_executable(notepanda
src/core/texteditor.cpp
src/core/texteditor.h
notepanda.rc
resources.qrc
)

file(GLOB_RECURSE IMAGES images/remixicons/*.svg images/*.ico)
add_executable(notepanda
${GUI_TYPE}
${SOURCES}
)

set(CMAKE_BUILD_TYPE Release)

Expand Down

0 comments on commit 9391814

Please sign in to comment.