AddWindowsResources.cmake raw
1 # Copyright (c) 2024-present The Limenka developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or https://opensource.org/license/mit/.
4
5 include_guard(GLOBAL)
6
7 macro(add_windows_resources target rc_file)
8 if(WIN32)
9 target_sources(${target} PRIVATE ${rc_file})
10 set_property(SOURCE ${rc_file}
11 APPEND PROPERTY COMPILE_DEFINITIONS WINDRES_PREPROC
12 )
13 endif()
14 endmacro()
15