Lines 1-6
Link Here
|
1 |
--- CMakeLists.txt.orig 2023-04-17 13:00:42 UTC |
1 |
--- CMakeLists.txt.orig 2024-05-11 01:22:43 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -184,6 +184,12 @@ set_target_properties(openshot-audio PROPERTIES |
3 |
@@ -175,6 +175,12 @@ set_target_properties(openshot-audio PROPERTIES |
4 |
EXPORT_NAME Audio # Exports as OpenShot::Audio target |
4 |
EXPORT_NAME Audio # Exports as OpenShot::Audio target |
5 |
) |
5 |
) |
6 |
|
6 |
|
Lines 13-19
Link Here
|
13 |
# Require language features we use |
13 |
# Require language features we use |
14 |
if(CMAKE_VERSION VERSION_GREATER 3.8) |
14 |
if(CMAKE_VERSION VERSION_GREATER 3.8) |
15 |
target_compile_features(openshot-audio PUBLIC |
15 |
target_compile_features(openshot-audio PUBLIC |
16 |
@@ -202,7 +208,8 @@ endif() |
16 |
@@ -193,7 +199,8 @@ endif() |
17 |
# Enable stack-unwinding support in c objects on gcc-based platforms. |
17 |
# Enable stack-unwinding support in c objects on gcc-based platforms. |
18 |
# Failing to do so will cause your program to be terminated when a png |
18 |
# Failing to do so will cause your program to be terminated when a png |
19 |
# or a jpeg exception is thrown on linux or macosx. |
19 |
# or a jpeg exception is thrown on linux or macosx. |
Lines 23-29
Link Here
|
23 |
target_compile_options(openshot-audio PRIVATE -fexceptions) |
23 |
target_compile_options(openshot-audio PRIVATE -fexceptions) |
24 |
endif() |
24 |
endif() |
25 |
|
25 |
|
26 |
@@ -265,8 +272,8 @@ if(UNIX AND NOT APPLE) |
26 |
@@ -256,8 +263,8 @@ if(UNIX AND NOT APPLE) |
27 |
INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIR} |
27 |
INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIR} |
28 |
INTERFACE_LINK_LIBRARIES ${ALSA_LIBRARIES}) |
28 |
INTERFACE_LINK_LIBRARIES ${ALSA_LIBRARIES}) |
29 |
endif() |
29 |
endif() |
Lines 34-40
Link Here
|
34 |
else() |
34 |
else() |
35 |
# For EXPORTED Config |
35 |
# For EXPORTED Config |
36 |
set(NEED_ALSA FALSE) |
36 |
set(NEED_ALSA FALSE) |
37 |
@@ -274,10 +281,67 @@ endif() |
37 |
@@ -265,10 +272,68 @@ endif() |
38 |
|
38 |
|
39 |
# ZLIB -- uses IMPORTED target ZLIB::ZLIB which has existed since CMake 3.1 |
39 |
# ZLIB -- uses IMPORTED target ZLIB::ZLIB which has existed since CMake 3.1 |
40 |
find_package(ZLIB REQUIRED) |
40 |
find_package(ZLIB REQUIRED) |
Lines 85-93
Link Here
|
85 |
+ endif(NOT JACK_FOUND) |
85 |
+ endif(NOT JACK_FOUND) |
86 |
+ if(NOT TARGET JACK::JACK) |
86 |
+ if(NOT TARGET JACK::JACK) |
87 |
+ add_library(JACK::JACK INTERFACE IMPORTED) |
87 |
+ add_library(JACK::JACK INTERFACE IMPORTED) |
88 |
+ set_target_properties(JACK::JACK PROPERTIES |
88 |
+ set_target_properties(JACK::JACK |
|
|
89 |
+ PROPERTIES |
89 |
+ INTERFACE_INCLUDE_DIRECTORIES ${JACK_INCLUDE_DIRS} |
90 |
+ INTERFACE_INCLUDE_DIRECTORIES ${JACK_INCLUDE_DIRS} |
90 |
+ INTERFACE_LINK_LIBRARIES ${JACK_LINK_LIBRARIES}) |
91 |
+ ) |
91 |
+ endif(NOT TARGET JACK::JACK) |
92 |
+ endif(NOT TARGET JACK::JACK) |
92 |
+ target_link_libraries(openshot-audio PRIVATE JACK::JACK) |
93 |
+ target_link_libraries(openshot-audio PRIVATE JACK::JACK) |
93 |
+ target_compile_definitions(openshot-audio PRIVATE JUCE_JACK=1) |
94 |
+ target_compile_definitions(openshot-audio PRIVATE JUCE_JACK=1) |