Lines 1-34
Link Here
|
1 |
--- src/CMakeLists.txt.orig 2019-12-19 13:04:31 UTC |
1 |
--- src/CMakeLists.txt.orig 2020-02-10 17:52:00 UTC |
2 |
+++ src/CMakeLists.txt |
2 |
+++ src/CMakeLists.txt |
3 |
@@ -358,6 +358,11 @@ if (TARGET cppzmq) |
3 |
@@ -364,7 +364,13 @@ if (TARGET RESVG::resvg) |
|
|
4 |
set(CMAKE_SWIG_FLAGS "-DUSE_RESVG=1") |
4 |
endif() |
5 |
endif() |
5 |
|
6 |
|
6 |
|
|
|
7 |
+find_library(EXECINFO_LIBRARY NAMES execinfo) |
7 |
+find_library(EXECINFO_LIBRARY NAMES execinfo) |
8 |
+if(NOT EXECINFO_LIBRARY) |
8 |
+if(NOT EXECINFO_LIBRARY) |
9 |
+ message(FATAL_ERROR "${EXECINFO_LIBRARY}") |
9 |
+ message(FATAL_ERROR "${EXECINFO_LIBRARY}") |
10 |
+endif(NOT EXECINFO_LIBRARY) |
10 |
+endif(NOT EXECINFO_LIBRARY) |
|
|
11 |
############### LINK LIBRARY ################# |
12 |
+target_link_libraries(openshot PUBLIC ${EXECINFO_LIBRARY}) |
11 |
+ |
13 |
+ |
12 |
############### LINK LIBRARY ################# |
|
|
13 |
# Link remaining dependency libraries |
14 |
# Link remaining dependency libraries |
14 |
target_link_libraries(openshot PUBLIC |
15 |
target_link_libraries(openshot PUBLIC |
15 |
@@ -396,9 +401,11 @@ target_compile_definitions(openshot-example PRIVATE |
16 |
${LIBOPENSHOT_AUDIO_LIBRARIES} |
16 |
|
|
|
17 |
# Link test executable to the new library |
18 |
target_link_libraries(openshot-example openshot) |
19 |
+target_link_libraries(openshot-example ${EXECINFO_LIBRARY}) |
20 |
|
21 |
add_executable(openshot-html-test examples/ExampleHtml.cpp) |
22 |
target_link_libraries(openshot-html-test openshot Qt5::Gui) |
23 |
+target_link_libraries(openshot-html-test ${EXECINFO_LIBRARY}) |
24 |
|
25 |
############### PLAYER EXECUTABLE ################ |
26 |
# Create test executable |
27 |
@@ -406,6 +413,7 @@ add_executable(openshot-player Qt/demo/main.cpp) |
28 |
|
29 |
# Link test executable to the new library |
30 |
target_link_libraries(openshot-player openshot) |
31 |
+target_link_libraries(openshot-player ${EXECINFO_LIBRARY}) |
32 |
|
33 |
############### TEST BLACKMAGIC CAPTURE APP ################ |
34 |
IF (BLACKMAGIC_FOUND) |