CMakeLists.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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: esdlcmd-xml
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for esdlcmd-xml
  21. #####################################################
  22. project( esdl-xml )
  23. set ( SRCS
  24. ${CMAKE_CURRENT_SOURCE_DIR}/esdl2xml.cpp
  25. ${CMAKE_CURRENT_SOURCE_DIR}/../esdlcmd/esdlcmdutils.cpp
  26. )
  27. include_directories (
  28. ${CMAKE_CURRENT_BINARY_DIR} # for generated .h file
  29. ${HPCC_SOURCE_DIR}/system/include
  30. ${HPCC_SOURCE_DIR}/system/jlib
  31. ${HPCC_SOURCE_DIR}/tools/esdlcomp
  32. ${HPCC_SOURCE_DIR}/tools/esdlcmd
  33. ${CMAKE_CURRENT_SOURCE_DIR}
  34. )
  35. ADD_DEFINITIONS( -D_CONSOLE -O0 )
  36. HPCC_ADD_EXECUTABLE ( esdl-xml ${SRCS} )
  37. MESSAGE("----INSTALLING ESDL-XML")
  38. install ( TARGETS esdl-xml RUNTIME DESTINATION ${EXEC_DIR} )
  39. if ( UNIX )
  40. install ( PROGRAMS esdl-xml.install DESTINATION etc/init.d/install COMPONENT Runtime )
  41. install ( PROGRAMS esdl-xml.uninstall DESTINATION etc/init.d/uninstall COMPONENT Runtime )
  42. endif ( UNIX )
  43. target_link_libraries ( esdl-xml
  44. jlib
  45. esdlcomp)