Update dependency paths and URLs

nix
Owen Green 6 years ago
parent 0c71eb8bdc
commit e136045834

@ -11,15 +11,14 @@ cmake_minimum_required(VERSION 3.11)
# Paths # Paths
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/install" CACHE PATH "") set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/install" CACHE PATH "")
set(SC_LIBRARY_OUTPUT_PREFIX "release-packaging" CACHE STRING "Where in the hierarchy to write sc plugins (different for superbuild)") set(SC_LIBRARY_OUTPUT_PREFIX "release-packaging" CACHE STRING "Where in the hierarchy to write sc plugins")
set(SC_PATH "" CACHE PATH "Path to the top of SuperCollider source tree") set(SC_PATH "" CACHE PATH "Path to the top of SuperCollider source tree")
if(NOT SC_PATH) if(NOT SC_PATH)
message(FATAL_ERROR "SuperCollider source path is not set") message(FATAL_ERROR "SuperCollider source path is not set")
endif() endif()
set(FLUID_PATH "" CACHE PATH "Optional path to the Fluid Decomposition repo") set(FLUID_PATH "" CACHE PATH "Optional path to the flucoma-core repo")
# set(FLUID_M_PATH "" CACHE PATH "Optional path to the Fluid fluid_manipulation repo")
if (APPLE) if (APPLE)
set(CMAKE_OSX_ARCHITECTURES x86_64) set(CMAKE_OSX_ARCHITECTURES x86_64)
@ -49,21 +48,21 @@ include(FetchContent)
set(FETCHCONTENT_QUIET FALSE) set(FETCHCONTENT_QUIET FALSE)
FetchContent_Declare( FetchContent_Declare(
fluid_decomposition flucoma-core
GIT_REPOSITORY https://bitbucket.org/flucoma/fluid_decomposition.git GIT_REPOSITORY https://github.com/flucoma/flucoma-core.git
GIT_PROGRESS TRUE GIT_PROGRESS TRUE
) )
if(FLUID_PATH) if(FLUID_PATH)
get_filename_component( get_filename_component(
FETCHCONTENT_SOURCE_DIR_FLUID_DECOMPOSITION ${FLUID_PATH} ABSOLUTE FETCHCONTENT_SOURCE_DIR_FLUCOMA-CORE ${FLUID_PATH} ABSOLUTE
) )
endif() endif()
FetchContent_GetProperties(fluid_decomposition) FetchContent_GetProperties(flucoma-core)
if(NOT fluid_decomposition_POPULATED) if(NOT flucoma-core_POPULATED)
FetchContent_Populate(fluid_decomposition) FetchContent_Populate(flucoma-core)
add_subdirectory(${fluid_decomposition_SOURCE_DIR} ${fluid_decomposition_BINARY_DIR}) add_subdirectory(${flucoma-core_SOURCE_DIR} ${flucoma-core_BINARY_DIR})
include(flucoma_version) include(flucoma_version)
include(flucoma-buildtools) include(flucoma-buildtools)
endif() endif()
@ -112,10 +111,18 @@ set(FLUID_PACKAGE_NAME FluidCorpusManipulation CACHE STRING "Name for published
set(SC_PACKAGE_ROOT ${SC_INSTALL_PREFIX}/${FLUID_PACKAGE_NAME}) set(SC_PACKAGE_ROOT ${SC_INSTALL_PREFIX}/${FLUID_PACKAGE_NAME})
foreach(PACKAGE_DIRECTORY Classes;HelpSource;Examples) foreach(PACKAGE_DIRECTORY Classes;HelpSource;Examples)
install(DIRECTORY "release-packaging/${PACKAGE_DIRECTORY}" DESTINATION ${SC_PACKAGE_ROOT}) install(DIRECTORY "release-packaging/${PACKAGE_DIRECTORY}"
DESTINATION ${SC_PACKAGE_ROOT})
endforeach() endforeach()
install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/ DESTINATION ${SC_PACKAGE_ROOT}/plugins PATTERN "*.ilk" EXCLUDE PATTERN "*.PDB" EXCLUDE) install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/
install(DIRECTORY "${fluid_decomposition_SOURCE_DIR}/AudioFiles" DESTINATION ${SC_PACKAGE_ROOT}) DESTINATION ${SC_PACKAGE_ROOT}/plugins
install(FILES QuickStart.md DESTINATION ${SC_PACKAGE_ROOT}) PATTERN "*.ilk" EXCLUDE
install(FILES ${fluid_decomposition_SOURCE_DIR}/distribution.lic DESTINATION ${SC_PACKAGE_ROOT} RENAME LICENSE.md) PATTERN "*.PDB" EXCLUDE)
install(DIRECTORY "${flucoma-core_SOURCE_DIR}/AudioFiles"
DESTINATION ${SC_PACKAGE_ROOT})
install(FILES QuickStart.md
DESTINATION ${SC_PACKAGE_ROOT})
install(FILES ${flucoma-core_SOURCE_DIR}/distribution.lic
DESTINATION ${SC_PACKAGE_ROOT}
RENAME LICENSE.md)

@ -65,7 +65,7 @@ target_include_directories(
) )
get_property(HEADERS TARGET FLUID_DECOMPOSITION PROPERTY INTERFACE_SOURCES) get_property(HEADERS TARGET FLUID_DECOMPOSITION PROPERTY INTERFACE_SOURCES)
source_group(TREE "${fluid_decomposition_SOURCE_DIR}/include" FILES ${HEADERS}) source_group(TREE "${flucoma-core_SOURCE_DIR}/include" FILES ${HEADERS})
# get_property(HEADERS TARGET FLUID_MANIP PROPERTY INTERFACE_SOURCES) # get_property(HEADERS TARGET FLUID_MANIP PROPERTY INTERFACE_SOURCES)
# source_group(TREE "${fluid_manipulation_SOURCE_DIR}/include" FILES ${HEADERS}) # source_group(TREE "${fluid_manipulation_SOURCE_DIR}/include" FILES ${HEADERS})

Loading…
Cancel
Save