CMakeLists.txt 882 B

123456789101112131415161718192021
  1. # For MacOS, use "OLD" RPATH install_name behavior
  2. # This can be changed to "NEW" safely if install_apple.sh.in
  3. # is updated to relink libcarlabase.dylib. MacOS 10.8 uses
  4. # cmake 3.9.6, so this can be done at any time.
  5. IF(NOT CMAKE_VERSION VERSION_LESS 3.9)
  6. CMAKE_POLICY(SET CMP0068 OLD)
  7. ENDIF()
  8. if(LMMS_HAVE_CARLA)
  9. INCLUDE(BuildPlugin)
  10. INCLUDE_DIRECTORIES(${CARLA_INCLUDE_DIRS})
  11. LINK_DIRECTORIES(${CARLA_LIBRARY_DIRS})
  12. LINK_LIBRARIES(${CARLA_LIBRARIES})
  13. BUILD_PLUGIN(carlabase carla.cpp carla.h MOCFILES carla.h EMBEDDED_RESOURCES artwork-patchbay.png artwork-rack.png LINK SHARED)
  14. SET_TARGET_PROPERTIES(carlabase
  15. PROPERTIES SKIP_BUILD_RPATH TRUE
  16. BUILD_WITH_INSTALL_RPATH TRUE
  17. INSTALL_RPATH_USE_LINK_PATH TRUE
  18. INSTALL_RPATH "${CARLA_RPATH}")
  19. endif(LMMS_HAVE_CARLA)