diff options
author | Jörg Müller <nexyon@gmail.com> | 2014-03-04 16:44:15 +0400 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2015-07-28 15:01:52 +0300 |
commit | 733073550f61cf4fbbe21aab33e9271915325109 (patch) | |
tree | a182ced91bb592815c097abf572bba999a9e8cdc /intern/audaspace/CMakeLists.txt | |
parent | 96dd213e7ecabeffc682aee40b4102296ab062de (diff) |
Audaspace: use standalone library.
- Added the cmake configuration option WITH_EXTERNAL_AUDASPACE.
- Fixes to build without standalone library as well.
Diffstat (limited to 'intern/audaspace/CMakeLists.txt')
-rw-r--r-- | intern/audaspace/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/intern/audaspace/CMakeLists.txt b/intern/audaspace/CMakeLists.txt index 5b810493663..7c6335166ec 100644 --- a/intern/audaspace/CMakeLists.txt +++ b/intern/audaspace/CMakeLists.txt @@ -21,6 +21,35 @@ remove_extra_strict_flags() +if(WITH_EXTERNAL_AUDASPACE) + + set(INC + . + ) + + set(INC_SYS + ${CAUDASPACE_INCLUDE_DIRS} + ${PYAUDASPACE_INCLUDE_DIRS} + ) + + set(SRC + intern/AUD_Set.cpp + intern/AUD_Set.h + ) + +if(WITH_PYTHON) + list(APPEND INC_SYS + ${PYTHON_INCLUDE_DIRS} + ) + list(APPEND SRC + intern/AUD_PyInit.cpp + intern/AUD_PyInit.h + ) + add_definitions(-DWITH_PYTHON) +endif() + +else() + set(INC . FX @@ -316,5 +345,6 @@ if(WITH_PYTHON) ) add_definitions(-DWITH_PYTHON) endif() +endif() blender_add_lib(bf_intern_audaspace "${SRC}" "${INC}" "${INC_SYS}") |