commit 6bfe826c6709c38650ec971a6e18ee5e77be006e
parent ad4eb6a5a69f002867564dfde43161efffecc864
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 22 Oct 2024 16:21:32 +0200
mac setup script now also used for test console programs
Diffstat:
5 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
@@ -20,6 +20,8 @@ add_subdirectory(baseLib)
add_subdirectory(synthLib)
add_subdirectory(libresample)
+include(macsetup.cmake)
+
# ----------------- Try to install VST2 SDK
include(findvst2.cmake)
diff --git a/source/juce.cmake b/source/juce.cmake
@@ -86,9 +86,7 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec
#juce::juce_recommended_warning_flags
)
- set(MAC_SETUP_PRODUCT_NAME ${productName})
- set(macSetupFile ${CMAKE_CURRENT_BINARY_DIR}/macsetup.command)
- configure_file(${JUCE_CMAKE_DIR}/macsetup.command.in ${macSetupFile})
+ createMacSetupScript(${productName})
set(clapFeatures "")
if(${isSynth})
diff --git a/source/macsetup.cmake b/source/macsetup.cmake
@@ -0,0 +1,7 @@
+set(MACSETUP_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
+
+macro(createMacSetupScript productName)
+ set(MAC_SETUP_PRODUCT_NAME ${productName})
+ set(macSetupFile ${CMAKE_CURRENT_BINARY_DIR}/macsetup.command)
+ configure_file(${MACSETUP_SOURCE_DIR}/macsetup.command.in ${macSetupFile})
+endmacro()
diff --git a/source/mqPerformanceTest/CMakeLists.txt b/source/mqPerformanceTest/CMakeLists.txt
@@ -11,6 +11,8 @@ set(SOURCES
target_sources(mqPerformanceTest PRIVATE ${SOURCES})
source_group("source" FILES ${SOURCES})
+createMacSetupScript("mqPerformanceTest")
+
target_link_libraries(mqPerformanceTest PUBLIC mqConsoleLib)
if(UNIX AND NOT APPLE)
@@ -18,4 +20,9 @@ if(UNIX AND NOT APPLE)
endif()
install(TARGETS mqPerformanceTest DESTINATION . COMPONENT VavraPerformanceTest)
+
+if(APPLE)
+ install(FILES ${macSetupFile} DESTINATION . COMPONENT VavraPerformanceTest)
+endif()
+
set_property(TARGET mqPerformanceTest PROPERTY FOLDER "Vavra")
diff --git a/source/virusTestConsole/CMakeLists.txt b/source/virusTestConsole/CMakeLists.txt
@@ -17,6 +17,8 @@ if(UNIX AND NOT APPLE)
target_link_libraries(virusTestConsole PUBLIC -static-libgcc -static-libstdc++)
endif()
+createMacSetupScript("virusTestConsole")
+
if(${gearmulator_SYNTH_OSIRUS})
install(TARGETS virusTestConsole DESTINATION . COMPONENT OsirusTestConsole)
@@ -25,6 +27,9 @@ if(${gearmulator_SYNTH_OSIRUS})
else()
install(DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/linux/ DESTINATION . COMPONENT OsirusTestConsole)
endif()
+ if(APPLE)
+ install(FILES ${macSetupFile} DESTINATION . COMPONENT OsirusTestConsole)
+ endif()
endif()
if(${gearmulator_SYNTH_OSTIRUS})
@@ -35,6 +40,9 @@ if(${gearmulator_SYNTH_OSTIRUS})
else()
install(DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/linux/ DESTINATION . COMPONENT OsTIrusTestConsole)
endif()
+ if(APPLE)
+ install(FILES ${macSetupFile} DESTINATION . COMPONENT OsTIrusTestConsole)
+ endif()
endif()
set_property(TARGET virusTestConsole PROPERTY FOLDER "Virus")