File tree 5 files changed +10
-26
lines changed
5 files changed +10
-26
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "vendor/WDL "]
2
2
path = vendor/WDL
3
3
url = https://github.com/justinfrankel/WDL.git
4
+ [submodule "vendor/reaper-sdk "]
5
+ path = vendor/reaper-sdk
6
+ url = https://github.com/justinfrankel/reaper-sdk.git
Original file line number Diff line number Diff line change @@ -36,30 +36,6 @@ endif()
36
36
37
37
STRING (TOLOWER "${ARCH_NAME} " ARCH_NAME)
38
38
39
- function (fetch fn url alt)
40
- set (path "${CMAKE_CURRENT_SOURCE_DIR} /${fn} " )
41
-
42
- if (EXISTS "${path} " )
43
- return ()
44
- endif ()
45
-
46
- message (STATUS "Downloading ${fn} from ${url} into vendor..." )
47
- file (DOWNLOAD ${url} "${path} " STATUS status LOG log )
48
- list (GET status 0 status_code)
49
-
50
- if (NOT status_code EQUAL 0)
51
- file (REMOVE "${path} " )
52
- message (SEND_ERROR "Failed to download ${fn} .\n ${alt} " )
53
- endif ()
54
- endfunction ()
55
-
56
- fetch(vendor/reaper_plugin.h https://landoleet.org/dev/reaper_plugin.h
57
- "Download the latest version from Landoleet manually." )
58
- fetch(vendor/reaper_plugin_functions.h
59
- https://gist.github.com/cfillion/da355e8278048de08ae065d6fe6031c1/raw/reaper_plugin_functions.h
60
- "Generate it using this REAPER action: [developer] Write C++ API functions header."
61
- )
62
-
63
39
set (CMAKE_CXX_EXTENSIONS OFF )
64
40
set (CMAKE_CXX_STANDARD_REQUIRED ON )
65
41
set (CMAKE_CXX_VISIBILITY_PRESET "hidden" )
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ add_library(reapack OBJECT
112
112
113
113
target_compile_features (reapack PUBLIC cxx_std_17)
114
114
target_include_directories (reapack PRIVATE
115
- ${CMAKE_SOURCE_DIR} /vendor ${CMAKE_CURRENT_BINARY_DIR} )
115
+ ${CMAKE_SOURCE_DIR} /vendor ${CMAKE_SOURCE_DIR} /vendor/reaper-sdk/sdk
116
+ ${CMAKE_CURRENT_BINARY_DIR}
117
+ )
116
118
117
119
if (WIN32 )
118
120
target_sources (reapack PRIVATE buildinfo.rc)
Original file line number Diff line number Diff line change @@ -33,5 +33,7 @@ add_executable(tests EXCLUDE_FROM_ALL
33
33
# std::uncaught_exceptions is unavailable prior to macOS 10.12
34
34
target_compile_definitions (tests PRIVATE CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS)
35
35
target_include_directories (tests PRIVATE
36
- ${CMAKE_SOURCE_DIR} /src ${CMAKE_SOURCE_DIR} /vendor)
36
+ ${CMAKE_SOURCE_DIR} /src
37
+ ${CMAKE_SOURCE_DIR} /vendor ${CMAKE_SOURCE_DIR} /vendor/reaper-sdk/sdk
38
+ )
37
39
target_link_libraries (tests Catch2::Catch2 reapack)
You can’t perform that action at this time.
0 commit comments