I'm trying to link a compiled .res file with cmake but I can't seem to find out much info on how to do it.
The closest I have got is
SET(RESOURCE_FILE resource.res)
file(GLOB src_files
"src/*.h"
"src/*.cpp"
"${RESOURCE_FILE}"
)
add_executable(exename ${src_files})
and then manually linking the .res file thru the IDE (i.e. in visual studio dropping the .res file in the Linker additional dependencies). This means I have to reset the additional dependency every time I change the cmake file. Surely there is a better way than this
Forgive my inexperience with cmake, any help would be appreciated.