InstallCGALDependencies.cmake 781 B

123456789101112131415161718192021222324
  1. # On Windows, we need to install the libraries that CGAL depends on.
  2. if( WIN32 )
  3. # Because these are dependencies, we don't have access to the targets, so we
  4. # must work with files.
  5. # Use the variables set by the libraries themselves and call InstallFiles() on them.
  6. if( CCCORELIB_USE_TBB )
  7. InstallFiles( FILES ${TBB_LIBRARY_RELEASE} )
  8. endif()
  9. if( CCCORELIB_USE_CGAL )
  10. list(GET GMP_LIBRARIES 0 FIRST_GMP_LIB_FILE)
  11. get_filename_component(GMP_LIB_FOLDER ${FIRST_GMP_LIB_FILE} DIRECTORY)
  12. file( GLOB GMP_DLL_FILES ${GMP_LIB_FOLDER}/*.dll )
  13. foreach( dest ${INSTALL_DESTINATIONS} )
  14. copy_files( "${GMP_DLL_FILES}" ${dest} 1 ) # Mind the quotes!
  15. endforeach()
  16. InstallFiles( FILES ${GMP_DLL_FILES} )
  17. #InstallFiles( FILES ${MPFR_LIBRARIES} )
  18. endif()
  19. endif()