CMakeLists.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ################################################################################
  2. # 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: unittests
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for unittests
  21. #####################################################
  22. if (USE_CPPUNIT)
  23. ADD_SUBDIRECTORY(configmgr)
  24. project( unitests )
  25. set ( SRCS
  26. unittests.cpp
  27. remotetests.cpp
  28. dalitests.cpp
  29. jlibtests.cpp
  30. cryptotests.cpp
  31. hqltests.cpp
  32. configmgr/ConfigMgrUnitTests.cpp
  33. configmgr/ConfigMgrTemplateTests.cpp
  34. configmgr/ConfigMgrHPCCTests.cpp
  35. )
  36. include_directories (
  37. .
  38. ./../../system/include
  39. ./../../system/jlib
  40. ./../../system/mp
  41. ./../../system/libbase58
  42. ./../../fs/dafsclient
  43. ./../../common/thorhelper
  44. ./../../dali/base
  45. ./../../system/security/shared
  46. ./../../common/deftype
  47. ./../../system/security/cryptohelper
  48. ./../../configuration/configmgr/configmgrlib
  49. ${HPCC_SOURCE_DIR}/ecl/hql
  50. ${HPCC_SOURCE_DIR}/configuration/configmgr/RapidJSON/include
  51. ${CMAKE_BINARY_DIR}
  52. ${CMAKE_BINARY_DIR}/oss
  53. )
  54. ADD_DEFINITIONS( -D_CONSOLE )
  55. HPCC_ADD_EXECUTABLE ( unittests ${SRCS} )
  56. install ( TARGETS unittests RUNTIME DESTINATION ${EXEC_DIR} )
  57. target_link_libraries ( unittests
  58. jlib
  59. dafsclient
  60. dalibase
  61. deftype
  62. libbase58
  63. thorhelper
  64. configmgr
  65. ${CPPUNIT_LIBRARIES}
  66. )
  67. endif ()