esdl.cmake 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: esdl-xml
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for esdl-xml
  21. #####################################################
  22. project( esdl-xml )
  23. include_directories (
  24. ./../../system/include
  25. ./../../system/jlib
  26. )
  27. ADD_DEFINITIONS ( -D_CONSOLE )
  28. add_custom_command ( OUTPUT esdlgram.cpp esdlgram.h
  29. COMMAND ../pcyacc/pcyacc -v -Desdlgram.h -Cesdlgram.cpp hidlgram.y
  30. DEPENDS esdlgram.h
  31. )
  32. add_custom_command ( OUTPUT esdllex.cpp
  33. COMMAND ../pcyacc/pclex -i -Cesdllex.cpp esdllex.l
  34. DEPENDS esdllex.l
  35. )
  36. set ( SRCS esdlgram.cpp esdllex.cpp main.cpp esdlcomp.cpp esdl_utils.cpp )
  37. # esdlgram.y esdllex.l main.cpp esdlcomp.cpp esdl_utils.cpp
  38. HPCC_ADD_EXECUTABLE ( esdl-xml ${SRCS} )
  39. # The tool esdl-xml is built in HPCCPlatform as a build-time
  40. # pre-req. But it is not distributed in CE packages.
  41. if ("${BUILD_LEVEL}" STREQUAL "ENTERPRISE")
  42. MESSAGE("----INSTALLING ESDL-XML")
  43. install ( TARGETS esdl-xml RUNTIME DESTINATION ${EXEC_DIR} )
  44. add_dependencies ( esdl-xml esdlgram.cpp esdlgram.h esdllex.cpp )
  45. endif()