CMake: Code and Find module tweaks

- FindOpenShotAudio takes over -DDEBUG, -DHAVE_ISFINITE logic
  (now set on OpenShot::Audio target when appropriate)
- Tweaks to BlackMagic dependency discovery
- Reverse the test-disabling logic, `DISABLE_TESTS FALSE` cache
  variable changed to `ENABLE_TESTS TRUE`
This commit is contained in:
FeRD (Frank Dana)
2020-10-18 11:04:28 -04:00
parent 1ae52808c7
commit d910949189
3 changed files with 26 additions and 38 deletions
-3
View File
@@ -74,9 +74,6 @@ endif()
set_property(SOURCE openshot.i PROPERTY CPLUSPLUS ON)
set_property(SOURCE openshot.i PROPERTY SWIG_MODULE_NAME openshot)
### Unbreak std::isfinite()
add_definitions(-DHAVE_ISFINITE=1)
### Suppress a ton of warnings in the generated SWIG C++ code
set(SWIG_CXX_FLAGS "-Wno-unused-variable -Wno-unused-function \
-Wno-deprecated-copy -Wno-class-memaccess -Wno-cast-function-type \