cmake_minimum_required(VERSION 3.7)
project(SOFA_Spatializer_NativeCode)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES
        AudioPluginInterface.h
        AudioPluginUtil.cpp
        AudioPluginUtil.h
        Plugin_Gain.cpp
        Plugin_SofaSpatializer.cpp
        PluginList.h)

add_library(SofaSpatializer SHARED ${SOURCE_FILES})

if (WIN32)
    # must use a filename that has the prefix 'AudioPlugin' in order for Unity to load the plugin
    set_target_properties(SofaSpatializer PROPERTIES PREFIX "AudioPlugin")
    set(LIBRARY_OUTPUT_PATH ../../Assets/Plugins)
endif()
cmake_minimum_required(VERSION 3.7)
project(SOFA_Spatializer_NativeCode)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES
        AudioPluginInterface.h
        AudioPluginUtil.cpp
        AudioPluginUtil.h
        Plugin_Gain.cpp
        Plugin_SofaSpatializer.cpp
        PluginList.h)

add_library(SofaSpatializer SHARED ${SOURCE_FILES})

# must use a filename that has the prefix 'AudioPlugin' in order for Unity to load the plugin
set_target_properties(SofaSpatializer PROPERTIES PREFIX "AudioPlugin")

if (EXISTS "../../Assets")
    set(LIBRARY_OUTPUT_PATH "../../Assets/Plugins")
endif()
Change cmake behaviour for being in a unity project
Change cmake behaviour for being in a unity project
