RemoteVstPlugin64.cmake 653 B

12345678910111213141516171819
  1. IF(LMMS_BUILD_WIN64)
  2. ADD_SUBDIRECTORY(RemoteVstPlugin)
  3. ELSEIF(LMMS_BUILD_LINUX)
  4. INCLUDE(CheckWineGcc)
  5. CheckWineGcc(64 "${WINEGCC}" WINEGCC_WORKING)
  6. IF(NOT WINEGCC_WORKING)
  7. MESSAGE(WARNING "winegcc fails to compile 64-bit binaries, please make sure you have 64-bit GCC libraries")
  8. RETURN()
  9. ENDIF()
  10. ExternalProject_Add(RemoteVstPlugin64
  11. "${EXTERNALPROJECT_ARGS}"
  12. CMAKE_ARGS
  13. "${EXTERNALPROJECT_CMAKE_ARGS}"
  14. "-DCMAKE_CXX_COMPILER=${WINEGCC}"
  15. "-DCMAKE_CXX_FLAGS=-m64"
  16. )
  17. INSTALL(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/../RemoteVstPlugin64" "${CMAKE_CURRENT_BINARY_DIR}/../RemoteVstPlugin64.exe.so" DESTINATION "${PLUGIN_DIR}")
  18. ENDIF()