CMakeLists.txt 865 B

1234567891011121314151617181920212223
  1. INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
  2. FILE(GLOB SOURCES *.cc)
  3. LIST(SORT SOURCES)
  4. ADD_LIBRARY(caps MODULE ${SOURCES})
  5. INSTALL(TARGETS caps LIBRARY DESTINATION "${PLUGIN_DIR}/ladspa")
  6. IF(LMMS_BUILD_WIN64)
  7. ADD_DEFINITIONS(-DLMMS_BUILD_WIN64)
  8. ENDIF(LMMS_BUILD_WIN64)
  9. SET_TARGET_PROPERTIES(caps PROPERTIES PREFIX "")
  10. SET_TARGET_PROPERTIES(caps PROPERTIES COMPILE_FLAGS "-O2 -funroll-loops -Wno-write-strings")
  11. IF(LMMS_BUILD_WIN32)
  12. ADD_CUSTOM_COMMAND(TARGET caps POST_BUILD COMMAND "${STRIP}" \"$<TARGET_FILE:caps>\")
  13. ENDIF(LMMS_BUILD_WIN32)
  14. IF(NOT LMMS_BUILD_APPLE AND NOT LMMS_BUILD_OPENBSD)
  15. SET_TARGET_PROPERTIES(caps PROPERTIES LINK_FLAGS "${LINK_FLAGS} -shared -Wl,-no-undefined")
  16. ENDIF(NOT LMMS_BUILD_APPLE AND NOT LMMS_BUILD_OPENBSD)
  17. IF(LMMS_BUILD_LINUX)
  18. SET_TARGET_PROPERTIES(caps PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
  19. ENDIF(LMMS_BUILD_LINUX)