CMakeLists.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. cryptotests.cpp
  30. )
  31. include_directories (
  32. .
  33. ./../../system/include
  34. ./../../system/jlib
  35. ./../../system/mp
  36. ./../../system/libbase58
  37. ./../../common/remote
  38. ./../../dali/base
  39. ./../../system/security/shared
  40. ./../../common/deftype
  41. ./../../system/security/cryptohelper
  42. )
  43. ADD_DEFINITIONS( -D_CONSOLE )
  44. HPCC_ADD_EXECUTABLE ( unittests ${SRCS} )
  45. install ( TARGETS unittests RUNTIME DESTINATION ${EXEC_DIR} )
  46. target_link_libraries ( unittests
  47. jlib
  48. remote
  49. dalibase
  50. deftype
  51. libbase58
  52. ${CPPUNIT_LIBRARIES}
  53. )
  54. endif ()