CMakeLists.txt 918 B

12345678910111213141516171819202122232425
  1. if(LMMS_HAVE_GIG)
  2. INCLUDE(BuildPlugin)
  3. INCLUDE_DIRECTORIES(${GIG_INCLUDE_DIRS})
  4. # Disable C++11 on Clang until gig.h is patched
  5. IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  6. SET(CMAKE_CXX_STANDARD 98)
  7. ENDIF()
  8. # Required for not crashing loading files with libgig
  9. SET(GCC_COVERAGE_COMPILE_FLAGS "-fexceptions")
  10. add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})
  11. # disable deprecated check for mingw-x-libgig
  12. if(LMMS_BUILD_WIN32)
  13. SET(GCC_GIG_COMPILE_FLAGS "-Wno-deprecated")
  14. add_definitions(${GCC_GIG_COMPILE_FLAGS})
  15. endif(LMMS_BUILD_WIN32)
  16. LINK_DIRECTORIES(${GIG_LIBRARY_DIRS} ${SAMPLERATE_LIBRARY_DIRS})
  17. LINK_LIBRARIES(${GIG_LIBRARIES} ${SAMPLERATE_LIBRARIES})
  18. BUILD_PLUGIN(gigplayer GigPlayer.cpp GigPlayer.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui MOCFILES GigPlayer.h PatchesDialog.h UICFILES PatchesDialog.ui EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
  19. endif(LMMS_HAVE_GIG)