I am trying to link a compiled .res file to cmake, but I cannot find much information on how to do this.
The closest I got
SET(RESOURCE_FILE resource.res) file(GLOB src_files "src/*.h" "src/*.cpp" "${RESOURCE_FILE}" ) add_executable(exename ${src_files})
and then manually link the .res file through the IDE (i.e., in visual studio, delete the .res file in additional Linker dependencies). This means that I must reset to add an additional dependency every time I modify the cmake file. Of course there is a better way than this
Forgive my inexperience with cmake, any help would be appreciated.
source share