mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Auto-fetch JUCE via FetchContent when JUCE/ dir is missing (Linux fix)
This commit is contained in:
parent
d5a21c5448
commit
4d8a746f69
1 changed files with 14 additions and 1 deletions
|
|
@ -4,7 +4,20 @@ project(ChromaFlock VERSION 1.0.0 LANGUAGES C CXX)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
add_subdirectory(JUCE)
|
include(FetchContent)
|
||||||
|
|
||||||
|
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/JUCE/CMakeLists.txt")
|
||||||
|
message(STATUS "JUCE not found locally — fetching from GitHub...")
|
||||||
|
FetchContent_Declare(
|
||||||
|
JUCE
|
||||||
|
GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
|
||||||
|
GIT_TAG 8.0.6
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
|
)
|
||||||
|
FetchContent_MakeAvailable(JUCE)
|
||||||
|
else()
|
||||||
|
add_subdirectory(JUCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
juce_add_binary_data(ChromaFlockBinaryData
|
juce_add_binary_data(ChromaFlockBinaryData
|
||||||
NAMESPACE BinaryData
|
NAMESPACE BinaryData
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue