feat(win): Add binary meta (#932)

This commit is contained in:
brindosch
2020-08-02 22:05:53 +02:00
committed by GitHub
parent 8824e69986
commit 94c23653de
7 changed files with 75 additions and 14 deletions

View File

@@ -296,16 +296,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
endif()
endif()
# Windows specific
if(WIN32)
# Path to .rc icon file for add_executable() calls
SET ( WIN_RC_ICON_FILE ${CMAKE_SOURCE_DIR}/cmake/nsis/icon.rc)
# Force gui app
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup")
endif()
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -v")
# Use GNU gold linker if available
if (NOT WIN32)
include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/LDGold.cmake)