# Header-only shared library for the MuseBox C++ server and client.
# Usage from a consumer project:
#   add_subdirectory(${MUSEBOX_COMMON_DIR}/cpp musebox_common)
#   target_link_libraries(<target> PRIVATE musebox_common)
cmake_minimum_required(VERSION 3.16)
project(musebox_common LANGUAGES CXX)

add_library(musebox_common INTERFACE)
target_include_directories(musebox_common INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_features(musebox_common INTERFACE cxx_std_17)

# Server build settings, when present
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/musebox_server.cmake")
  include("${CMAKE_CURRENT_SOURCE_DIR}/musebox_server.cmake")
endif()
