CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. project( unitests )
  24. set ( SRCS
  25. unittests.cpp
  26. remotetests.cpp
  27. dalitests.cpp
  28. jlibtests.cpp
  29. )
  30. include_directories (
  31. .
  32. ./../../system/include
  33. ./../../system/jlib
  34. ./../../system/mp
  35. ./../../common/remote
  36. ./../../dali/base
  37. ./../../system/security/shared
  38. ./../../common/deftype
  39. )
  40. ADD_DEFINITIONS( -D_CONSOLE )
  41. HPCC_ADD_EXECUTABLE ( unittests ${SRCS} )
  42. install ( TARGETS unittests RUNTIME DESTINATION ${EXEC_DIR} )
  43. target_link_libraries ( unittests
  44. jlib
  45. remote
  46. dalibase
  47. deftype
  48. ${CPPUNIT_LIBRARIES}
  49. )
  50. endif ()