Skip to content

Commit

Permalink
Unix working
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Aug 9, 2024
1 parent 86a4aeb commit f0c1e33
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmake/basic-installer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,26 @@ function(shortcircuit_package format suffix)
get_target_property(output_name scxt_clapfirst_${format} OUTPUT_NAME)
endif()

message(STATUS "Adding scxt_clapfirst_${format} to installer from '${output_dir}/${output_name}${suffix}'")
add_dependencies(shortcircuit-products scxt_clapfirst_${format})

# This is all a bit messy. Think about this some
set(isdir 0)
if (APPLE)
set(isdir 1)
else()
if ("${suffix}" STREQUAL ".vst3")
set(isdir 1)
if (UNIX)
# There must be a better way to do this. Darn fake bundles.
get_target_property(output_dir scxt_clapfirst_${format} LIBRARY_OUTPUT_DIRECTORY)
message(STATUS "Unix VST3: Re-got output dir and it is ${output_dir}")
set(output_dir "${output_dir}/../../..")
endif()
endif()
endif()

message(STATUS "Adding scxt_clapfirst_${format} to installer from '${output_dir}/${output_name}${suffix}'")

if (${isdir} EQUAL 1)
add_custom_command(
TARGET shortcircuit-products
Expand Down

0 comments on commit f0c1e33

Please sign in to comment.