@@ -12,6 +12,28 @@ find_package(ligo CONFIG REQUIRED)
|
||||
find_package(noto CONFIG REQUIRED)
|
||||
find_package(luma CONFIG REQUIRED)
|
||||
find_package(sonus CONFIG REQUIRED)
|
||||
include(CheckCXXSourceCompiles)
|
||||
include(CMakePushCheckState)
|
||||
cmake_push_check_state(RESET)
|
||||
set(CMAKE_TRY_COMPILE_CONFIGURATION "${CMAKE_BUILD_TYPE}")
|
||||
set(CMAKE_REQUIRED_LIBRARIES sonus::sonus luma::luma)
|
||||
unset(VAMP_DEPENDENCY_APIS_AVAILABLE CACHE)
|
||||
check_cxx_source_compiles("
|
||||
#include <sonus.hpp>
|
||||
#include <luma.hpp>
|
||||
#include <utility>
|
||||
static_assert(requires(sonus::engine& engine, sonus::prepared_sequence sequence) {
|
||||
engine.play_sequence(std::move(sequence));
|
||||
});
|
||||
static_assert(requires(luma::application& application, std::string path) {
|
||||
application.load_texture_uncached(path);
|
||||
});
|
||||
int main() { return 0; }
|
||||
" VAMP_DEPENDENCY_APIS_AVAILABLE)
|
||||
cmake_pop_check_state()
|
||||
if(NOT VAMP_DEPENDENCY_APIS_AVAILABLE)
|
||||
message(FATAL_ERROR "Product Vamp requires current Sonus sequence and Luma uncached-texture APIs. Run ./modulus.py configure --update after publishing the updated dependencies, or create their Conan packages locally before configuring --no-remote. See CMake's configure log for the compiler diagnostic.")
|
||||
endif()
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/font.cmake)
|
||||
|
||||
execute_process(
|
||||
|
||||
Reference in New Issue
Block a user