mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Set executable icon in windows CMake build. (#2443)
This commit is contained in:
parent
de74675861
commit
d971f30d25
@ -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
|
||||
|
1
src/img/cutter.rc
Normal file
1
src/img/cutter.rc
Normal file
@ -0,0 +1 @@
|
||||
IDR_MAINFRAME ICON "cutter.ico"
|
Loading…
Reference in New Issue
Block a user