Browse Source

feat: link resource file to add icon when compiling for Windows

master
Abheek Dhawan 2 years ago
parent
commit
002fd31295
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 8
      CMakeLists.txt

8
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)
Loading…
Cancel
Save