if(CMAKE_VERSION VERSION_LESS 3.0) message(FATAL_ERROR "CMake 3.0 or greater is required") endif() add_library(Ableton::Link IMPORTED INTERFACE) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include ) # Force C++11 support for consuming targets set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_FEATURES cxx_generalized_initializers ) if(UNIX) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LINK_PLATFORM_UNIX=1 ) endif() if(APPLE) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LINK_PLATFORM_MACOSX=1 ) elseif(WIN32) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LINK_PLATFORM_WINDOWS=1 ) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_OPTIONS "/wd4503" # 'Identifier': decorated name length exceeded, name was truncated ) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LINK_PLATFORM_LINUX=1 ) endif() include(${CMAKE_CURRENT_LIST_DIR}/cmake_include/AsioStandaloneConfig.cmake) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_LINK_LIBRARIES AsioStandalone::AsioStandalone ) set_property(TARGET Ableton::Link APPEND PROPERTY INTERFACE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/include/ableton/Link.hpp )