diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2f8dcf0c..be12b80b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -169,6 +169,11 @@ if (TARGET Graphviz::GVC) list(APPEND HEADER_FILES ${CUTTER_PRO_GRAPHVIZ_HEADERS}) endif() +if (WIN32) + set(PLATFORM_RESOURCES "img/cutter.rc") +else() + set(PLATFORM_RESOURCES "") +endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") @@ -177,7 +182,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" endif() -add_executable(Cutter MACOSX_BUNDLE ${UI_FILES} ${QRC_FILES} ${SOURCE_FILES} ${HEADER_FILES} ${BINDINGS_SOURCE}) +add_executable(Cutter MACOSX_BUNDLE ${UI_FILES} ${QRC_FILES} ${PLATFORM_RESOURCES} ${SOURCE_FILES} ${HEADER_FILES} ${BINDINGS_SOURCE}) set_target_properties(Cutter PROPERTIES ENABLE_EXPORTS ON CXX_VISIBILITY_PRESET hidden diff --git a/src/img/cutter.rc b/src/img/cutter.rc new file mode 100644 index 00000000..f9d0bf03 --- /dev/null +++ b/src/img/cutter.rc @@ -0,0 +1 @@ +IDR_MAINFRAME ICON "cutter.ico" \ No newline at end of file