CMakeLists.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: deployutils
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for deployutils
  21. #####################################################
  22. project( deployutils )
  23. set ( SRCS
  24. buildset.cpp
  25. computerpicker.cpp
  26. configenvhelper.cpp
  27. wizardInputs.cpp
  28. deployutils.cpp
  29. )
  30. include_directories (
  31. ${HPCC_SOURCE_DIR}/system/include
  32. ${HPCC_SOURCE_DIR}/system/jlib
  33. ${HPCC_SOURCE_DIR}/system/mp
  34. ${HPCC_SOURCE_DIR}/system/xmllib
  35. ${HPCC_SOURCE_DIR}/common/environment
  36. ${HPCC_SOURCE_DIR}/dali/base
  37. ${HPCC_SOURCE_DIR}/esp/esplib
  38. ${HPCC_SOURCE_DIR}/deployment/configgen
  39. ${HPCC_SOURCE_DIR}/deployment/deploy
  40. ${HPCC_SOURCE_DIR}/deployment/configutils
  41. ${CMAKE_BINARY_DIR}
  42. ${CMAKE_BINARY_DIR}/oss
  43. ${HPCC_SOURCE_DIR}/system/security/shared
  44. )
  45. if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.2.0")
  46. set_source_files_properties(deployutils.cpp PROPERTIES COMPILE_FLAGS -Wno-format-overflow)
  47. endif()
  48. ADD_DEFINITIONS ( -D_USRDLL -DDEPLOYUTILS_EXPORTS )
  49. HPCC_ADD_LIBRARY( deployutils SHARED ${SRCS} )
  50. install ( TARGETS deployutils RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} )
  51. target_link_libraries ( deployutils
  52. jlib
  53. environment
  54. xmllib
  55. deploy
  56. configutils
  57. )