From 002fd31295f63bdb5329bc0d530cb52854b0b39e Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 21 Aug 2022 14:19:47 -0500 Subject: [PATCH] feat: link resource file to add icon when compiling for Windows --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3911732..d9bbea6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,12 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.7) project(modlimitfix) -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 14) add_executable(modlimitfix main.cpp) target_link_libraries(modlimitfix -static-libgcc -static-libstdc++) +if (WIN32) + message("WIN32") + set_target_properties(modlimitfix PROPERTIES LINK_FLAGS ${CMAKE_CURRENT_SOURCE_DIR}/modlimitfix.res) +endif(WIN32) \ No newline at end of file