#${CMAKE_BINARY_DIR} equals ${CMAKE_SOURCE_DIR} - we are building in-source. #Copy the MSYS2 DLL to a place where applications will find it. #This allows us to run any POSIX application that has been copied to #the bin subdirectory of the install prefix. if (WIN32) file (INSTALL ${CMAKE_CURRENT_LIST_DIR}/posix.cmd DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) file (INSTALL ${CMAKE_BINARY_DIR}/usr/bin/msys-2.0.dll DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) endif (WIN32)