CMakeLists.txt 1015 B

1234567891011121314151617181920212223242526272829
  1. INCLUDE(BuildPlugin)
  2. INCLUDE_DIRECTORIES(exprtk)
  3. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_sc_andor")
  4. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_return_statement")
  5. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_break_continue")
  6. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_comments")
  7. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_string_capabilities")
  8. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_rtl_io_file")
  9. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dexprtk_disable_rtl_vecops")
  10. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WERROR_FLAGS} -fexceptions")
  11. IF(LMMS_BUILD_WIN32 AND NOT MSVC)
  12. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -Dexprtk_disable_enhanced_features")
  13. ELSEIF(LMMS_BUILD_WIN32 AND MSVC)
  14. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
  15. ENDIF()
  16. BUILD_PLUGIN(xpressive
  17. Xpressive.cpp
  18. ExprSynth.cpp
  19. Xpressive.h
  20. exprtk/exprtk.hpp
  21. MOCFILES Xpressive.h
  22. EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png"
  23. )