CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # You may redistribute this program and/or modify it under the terms of
  2. # the GNU General Public License as published by the Free Software Foundation,
  3. # either version 3 of the License, or (at your option) any later version.
  4. #
  5. # This program is distributed in the hope that it will be useful,
  6. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. # GNU General Public License for more details.
  9. #
  10. # You should have received a copy of the GNU General Public License
  11. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. add_library(TestFramework TestFramework.c)
  13. target_link_libraries(TestFramework
  14. crypto
  15. interface
  16. switch
  17. dht
  18. dhtcore
  19. cjdbenc
  20. cjdbenc_JsonBencSerializer
  21. cjdbenc_StandardBencSerializer
  22. cjdmemory
  23. cjdns-admin
  24. cjdnet
  25. cjdns-util-events-libuv
  26. cjdns-tunnel-iptunnel
  27. cjdns-crypto-random
  28. )
  29. set(Test_FILES
  30. cjdroute_injection_test.c
  31. cjdroute_routerPing_test.c
  32. CryptoAddress_test.c
  33. twoNodes_test.c
  34. threeNodes_test.c
  35. )
  36. set(Test_LIBRARIES
  37. TestFramework
  38. )
  39. include(${CMAKE_SOURCE_DIR}/cmake/modules/Test.cmake)