I am trying copy certain dll's to Output folder where the generated binary resides and some of the dll's are visual studio version specific. I tried something similar to below template but it gives me errors.
INSTALL(FILES
../x.dll
../y.dll
../z.dll
IF(${CMAKE_GENERATOR} STREQUAL "Visual Studio 12 2013")
../xyz.dll
ELSE()
../xy.dll
ENDIF()
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/Release)
Where am i going wrong? (I am new to CMAKE)
I solved my issue with below template.