CMakeLists.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ##############################################################################
  2. #
  3. # HPCC SYSTEMS software Copyright (C) 2018 HPCC Systems®.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. ##############################################################################
  17. project ( configmgr )
  18. SET( SRCS
  19. EnvironmentMgr.cpp
  20. XMLEnvironmentMgr.cpp
  21. XMLEnvironmentLoader.cpp
  22. SchemaParser.cpp
  23. SchemaItem.cpp
  24. SchemaValue.cpp
  25. SchemaTypeLimits.cpp
  26. SchemaTypeIntegerLimits.cpp
  27. SchemaTypeStringLimits.cpp
  28. EnvironmentNode.cpp
  29. EnvironmentValue.cpp
  30. XSDComponentParser.cpp
  31. XSDSchemaParser.cpp
  32. XSDValueSetParser.cpp
  33. Status.cpp
  34. EnvironmentEventHandlers.cpp
  35. Utils.cpp
  36. InsertableItem.cpp
  37. ConfigPath.cpp
  38. EnvSupportLib.cpp
  39. mod_template_support/EnvModTemplate.cpp
  40. mod_template_support/Variable.cpp
  41. mod_template_support/TemplateException.cpp
  42. mod_template_support/Operation.cpp
  43. mod_template_support/OperationCreateNode.cpp
  44. mod_template_support/OperationFindNode.cpp
  45. mod_template_support/OperationModifyNode.cpp
  46. mod_template_support/Variables.cpp
  47. mod_template_support/IPAddressRangeVariable.cpp
  48. mod_template_support/IPAddressVariable.cpp
  49. mod_template_support/HostNameVariable.cpp
  50. mod_template_support/OperationDeleteNode.cpp
  51. )
  52. INCLUDE_DIRECTORIES(
  53. ${HPCC_SOURCE_DIR}/system/include
  54. ${HPCC_SOURCE_DIR}/system/jlib
  55. ${HPCC_SOURCE_DIR}/deployment/deploy
  56. ${CMAKE_PREFIX_PATH}/mkspecs/linux-g++
  57. ${CMAKE_CURRENT_SOURCE_DIR}
  58. ${CMAKE_CURRENT_SOURCE_DIR}/../hpcc_support
  59. ${HPCC_SOURCE_DIR}/configuration/configmgr/RapidJSON/include
  60. ${CMAKE_BINARY_DIR}
  61. ${CMAKE_BINARY_DIR}/oss
  62. ${BOOST_REGEX_INCLUDE_DIR}
  63. )
  64. ADD_DEFINITIONS( -D_USRDLL -DCFGMGRLIB_EXPORTS)
  65. HPCC_ADD_LIBRARY( configmgr SHARED ${SRCS} )
  66. if(CENTOS_6_BOOST)
  67. add_dependencies(configmgr generate-boost-regex)
  68. endif()
  69. TARGET_LINK_LIBRARIES( configmgr jlib)
  70. INSTALL ( TARGETS configmgr RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} )