1# As this script is run in a new cmake instance, it does not have access to 2# the existing cache variables. Pass them in via the configure_file command. 3set(CMAKE_BINARY_DIR @CMAKE_BINARY_DIR@) 4set(CMAKE_SOURCE_DIR @CMAKE_SOURCE_DIR@) 5set(UNIX @UNIX@) 6set(WIN32 @WIN32@) 7set(CMAKE_CROSSCOMPILING @CMAKE_CROSSCOMPILING@) 8set(CMAKE_FIND_LIBRARY_SUFFIXES @CMAKE_FIND_LIBRARY_SUFFIXES@) 9set(CMAKE_FIND_LIBRARY_PREFIXES @CMAKE_FIND_LIBRARY_PREFIXES@) 10set(CMAKE_SYSTEM_LIBRARY_PATH @CMAKE_SYSTEM_LIBRARY_PATH@) 11set(CMAKE_FIND_ROOT_PATH @CMAKE_FIND_ROOT_PATH@) 12set(CODEC2_DLL ${CMAKE_BINARY_DIR}/src/libcodec2.dll) 13 14include(${CMAKE_SOURCE_DIR}/cmake/GetPrerequisites.cmake) 15get_prerequisites(${CODEC2_DLL} _deps 1 0 "" "") 16foreach(_runtime ${_deps}) 17 message("Looking for ${_runtime}") 18 find_library(RUNTIME_${_runtime} ${_runtime}) 19 message("${RUNTIME_${_runtime}}") 20 if(RUNTIME_${_runtime}) 21 file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" 22 TYPE EXECUTABLE FILES "${RUNTIME_${_runtime}}") 23 endif() 24endforeach() 25