Skip to content

Commit

Permalink
Set deploying on Windows as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
donarturo11 committed Jul 7, 2024
1 parent e5fee8c commit aca1b2f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option(FORCE_QT5 "Force qt5 install" OFF)
option(FORCE_QT6 "Force qt6 install" OFF)
option(USE_PORTAUDIOCPP "Build with portaudiocpp" OFF)
option(MINGW_DEPLOY "Deploy MinGW runtime dependencies" OFF)
option(DEPS_DEPLOY "Deploy MinGW runtime dependencies" OFF)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
message("CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
Expand Down Expand Up @@ -142,12 +143,10 @@ install (TARGETS ${PROJECT_NAME}

include(CPackConfig)

if (MINGW)
if (MINGW_DEPLOY)
include(MingwDeploy)
endif()
if (MINGW AND MINGWDEPLOY)
include(MingwDeploy)
endif()
if (WIN32)
if (WIN32 AND DEPS_DEPLOY)
find_file(PORTAUDIO_DLL PATHS ${CMAKE_PREFIX_PATH} NAMES portaudio.dll libportaudio.dll)
find_file(STK_DLL PATHS ${CMAKE_PREFIX_PATH} NAMES stk.dll libstk.dll)
install(FILES ${RTAUDIO_DLL} ${STK_DLL} DESTINATION ${PROJECT_NAME})
Expand Down

0 comments on commit aca1b2f

Please sign in to comment.