CMakeLists.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # ***** BEGIN LGPL LICENSE BLOCK *****
  2. #
  3. # Copyright 2009 Jrg Hermann Mller
  4. #
  5. # This file is part of AudaSpace.
  6. #
  7. # AudaSpace is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # AudaSpace is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Lesser General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public License
  18. # along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. # ***** END LGPL LICENSE BLOCK *****
  21. remove_strict_flags()
  22. if(CMAKE_COMPILER_IS_GNUCC)
  23. remove_cc_flag("-Wunused-macros")
  24. endif()
  25. set(INC
  26. .
  27. )
  28. set(INC_SYS
  29. ${AUDASPACE_C_INCLUDE_DIRS}
  30. ${AUDASPACE_PY_INCLUDE_DIRS}
  31. )
  32. set(SRC
  33. intern/AUD_Set.cpp
  34. intern/AUD_Set.h
  35. )
  36. set(LIB
  37. )
  38. if(NOT WITH_SYSTEM_AUDASPACE)
  39. list(APPEND LIB
  40. audaspace
  41. )
  42. if(WITH_SDL_DYNLOAD)
  43. list(APPEND LIB
  44. extern_sdlew
  45. )
  46. endif()
  47. endif()
  48. if(WITH_PYTHON)
  49. list(APPEND INC_SYS
  50. ${PYTHON_INCLUDE_DIRS}
  51. )
  52. list(APPEND SRC
  53. intern/AUD_PyInit.cpp
  54. intern/AUD_PyInit.h
  55. )
  56. if(NOT WITH_SYSTEM_AUDASPACE)
  57. list(APPEND LIB
  58. audaspace-py
  59. )
  60. endif()
  61. add_definitions(-DWITH_PYTHON)
  62. endif()
  63. blender_add_lib(bf_intern_audaspace "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")