CMakeLists.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2012 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: remote
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for remote
  21. #####################################################
  22. project( remote )
  23. HPCC_ADD_SUBDIRECTORY(hooks)
  24. set ( SRCS
  25. rmtspawn.cpp
  26. rmtssh.cpp
  27. rmtsmtp.cpp
  28. )
  29. if (USE_URIPARSER)
  30. set ( SRCS
  31. ${SRCS}
  32. uri.cpp
  33. uri.hpp
  34. )
  35. endif(USE_URIPARSER)
  36. include_directories (
  37. ${HPCC_SOURCE_DIR}/system/hrpc
  38. ${HPCC_SOURCE_DIR}/system/mp
  39. ${HPCC_SOURCE_DIR}/system/include
  40. ${HPCC_SOURCE_DIR}/system/jlib
  41. ${HPCC_SOURCE_DIR}/system/jhtree
  42. ${HPCC_SOURCE_DIR}/rtl/eclrtl
  43. ${HPCC_SOURCE_DIR}/system/security/shared
  44. ${HPCC_SOURCE_DIR}/system/security/securesocket
  45. ${HPCC_SOURCE_DIR}/system/security/cryptohelper
  46. ${HPCC_SOURCE_DIR}/fs/dafsclient
  47. ${HPCC_SOURCE_DIR}/testing/unittests
  48. ${HPCC_SOURCE_DIR}/rtl/include
  49. ${HPCC_SOURCE_DIR}/rtl/eclrtl
  50. ${HPCC_SOURCE_DIR}/ecl/hql
  51. ${HPCC_SOURCE_DIR}/common/deftype
  52. ${CMAKE_BINARY_DIR}
  53. ${CMAKE_BINARY_DIR}/oss
  54. )
  55. ADD_DEFINITIONS( -D_USRDLL -DREMOTE_EXPORTS )
  56. HPCC_ADD_LIBRARY( remote SHARED ${SRCS} )
  57. install ( TARGETS remote RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} )
  58. target_link_libraries ( remote
  59. eclrtl
  60. jlib
  61. jhtree
  62. hql
  63. mp
  64. ${URIPARSER_LIBRARIES}
  65. ${CPPUNIT_LIBRARIES}
  66. )
  67. IF (USE_OPENSSL)
  68. target_link_libraries ( remote
  69. securesocket
  70. )
  71. ENDIF()