CMakeLists.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. # Component: eclblas
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for eclblas
  21. #####################################################
  22. project(eclblas)
  23. if(USE_CBLAS)
  24. set(SRCS
  25. dasum.cpp
  26. daxpy.cpp
  27. dgemm.cpp
  28. dgetf2.cpp
  29. dpotf2.cpp
  30. dscal.cpp
  31. dsyrk.cpp
  32. dtrsm.cpp
  33. eclblas.cpp
  34. extract_tri.cpp
  35. make_diag.cpp)
  36. include_directories(
  37. ./../../system/include
  38. ./../../rtl/eclrtl
  39. ./../../rtl/include
  40. ./../../common/deftype
  41. ./../../system/jlib
  42. ${CBLAS_INCLUDE_DIR})
  43. ADD_DEFINITIONS(-D_USRDLL -DECLBLAS_EXPORTS)
  44. HPCC_ADD_LIBRARY(eclblas SHARED ${SRCS})
  45. install ( TARGETS eclblas RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} ) # No need to put in plugins dir
  46. target_link_libraries(eclblas
  47. eclrtl
  48. ${CBLAS_LIBRARIES})
  49. else()
  50. message(AUTHOR_WARNING "Not building eclblas library for standard library due to lacking libcblas")
  51. endif(USE_CBLAS)
  52. if(PLATFORM OR CLIENTTOOLS_ONLY)
  53. install(
  54. FILES ${CMAKE_CURRENT_SOURCE_DIR}/lib_eclblas.ecllib
  55. DESTINATION plugins
  56. COMPONENT Runtime)
  57. endif()