Commit 996f7b2a authored by Benjamin Heisch's avatar Benjamin Heisch
Browse files

Includeded dependencies as system headers.

parent 3e19fdc5
......@@ -9,7 +9,7 @@ if(XPLUG_LV2_SUPPORT)
add_library(lv2 "lv2.cpp" "lv2_ttl_generation.cpp")
set_target_properties(lv2 PROPERTIES POSITION_INDEPENDENT_CODE True)
target_link_libraries(lv2 XPlug)
target_include_directories(lv2 PRIVATE ${LV2_INCLUDE_DIRS} ${CMAKE_CURRENT_LIST_DIR}/../../src)
target_include_directories(lv2 SYSTEM PRIVATE ${LV2_INCLUDE_DIRS})
target_compile_features(lv2 PUBLIC cxx_std_11)
EXPORT_SYMBOLS(lv2 FUNCTION_NAMES lv2_descriptor lv2_lib_descriptor getTTLFromPlugin getManifestFromMultpleInfos getPluginInfos)
add_executable(TTLGenerator "TtlGenerator.cpp")
......
if(XPLUG_BUILD_TESTS)
target_include_directories(XValidate PUBLIC ${LV2_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/deps/)
target_include_directories(XValidate SYSTEM PUBLIC ${LV2_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/deps/)
target_sources(XValidate PUBLIC
${CMAKE_CURRENT_LIST_DIR}/LV2TestSuite.cpp
${PROJECT_SOURCE_DIR}/deps/lilv.c
)
target_include_directories(regression_tests PUBLIC ${LV2_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/deps/)
target_include_directories(regression_tests SYSTEM PUBLIC ${LV2_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/deps/)
target_sources(regression_tests PUBLIC
${CMAKE_CURRENT_LIST_DIR}/LV2RegressionTest.cpp
${PROJECT_SOURCE_DIR}/deps/lilv.c)
......
......@@ -6,10 +6,10 @@ if(XPLUG_VST2_SUPPORT)
add_library(vst2 "vestige.cpp" "vst_def.hpp")
target_compile_features(vst2 PUBLIC cxx_std_11)
if(VST2_FOUND)
target_include_directories(vst2 PRIVATE ${VST2_INCLUDE_DIRS})
target_include_directories(vst2 SYSTEM PRIVATE ${VST2_INCLUDE_DIRS})
target_compile_definitions(vst2 PRIVATE USE_VST2_SDK)
endif(VST2_FOUND)
target_include_directories(vst2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../src ${PROJECT_SOURCE_DIR}/deps/)
target_include_directories(vst2 SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/deps/)
set_target_properties(vst2 PROPERTIES POSITION_INDEPENDENT_CODE True)
target_link_libraries(vst2 XPlug)
EXPORT_SYMBOLS(vst2 FUNCTION_NAMES VSTPluginMain)
......
if(XPLUG_BUILD_TESTS)
target_include_directories(XValidate PUBLIC ${CMAKE_SOURCE_DIR}/formats/vst2)
if(VST2_FOUND)
target_include_directories(XValidate SYSTEM PRIVATE ${VST2_INCLUDE_DIRS})
target_compile_definitions(XValidate PRIVATE USE_VST2_SDK)
target_include_directories(regression_tests SYSTEM PRIVATE ${VST2_INCLUDE_DIRS})
target_compile_definitions(regression_tests PRIVATE USE_VST2_SDK)
endif(VST2_FOUND)
target_sources(XValidate PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST2TestSuite.cpp)
target_include_directories(regression_tests PUBLIC ${CMAKE_CURRENT_LIST_DIR}/..)
target_include_directories(XValidate SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/deps/ ${CMAKE_CURRENT_LIST_DIR}/..)
target_sources(regression_tests PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST2RegressionTest.cpp)
target_include_directories(regression_tests SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/deps/ ${CMAKE_CURRENT_LIST_DIR}/..)
endif(XPLUG_BUILD_TESTS)
\ No newline at end of file
......@@ -10,7 +10,7 @@ if(XPLUG_VST3_SUPPORT)
add_library(vst3 vst3.cpp Component.cpp VST3AudioProcessorImpl.cpp VST3EditControllerImpl.cpp)
set_target_properties(vst3 PROPERTIES POSITION_INDEPENDENT_CODE True)
target_link_libraries(vst3 XPlug ${VST3_LIBRARIES})
target_include_directories(vst3 PRIVATE ${VST3_INCLUDE_DIRS} ${CMAKE_CURRENT_LIST_DIR}/../../src)
target_include_directories(vst3 SYSTEM PRIVATE ${VST3_INCLUDE_DIRS} )
target_compile_features(vst3 PUBLIC cxx_std_11)
if(WIN32)
......
if(XPLUG_BUILD_TESTS)
target_include_directories(XValidate PUBLIC ${VST3_INCLUDE_DIRS})
target_include_directories(XValidate SYSTEM PUBLIC ${VST3_INCLUDE_DIRS})
target_sources(XValidate PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST3TestSuite.cpp)
cmake_policy(SET CMP0079 NEW)
target_link_libraries(XValidate PUBLIC ${VST3_LIBRARIES})
target_include_directories(regression_tests PUBLIC ${VST3_INCLUDE_DIRS})
target_include_directories(regression_tests SYSTEM PUBLIC ${VST3_INCLUDE_DIRS})
target_sources(regression_tests PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST3RegressionTest.cpp)
#cmake_policy(SET CMP0079 NEW)
target_link_libraries(regression_tests PUBLIC ${VST3_LIBRARIES})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment