CMakeLists.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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(cjdns-interface-waiter
  13. InterfaceWaiter.c
  14. )
  15. target_link_libraries(cjdns-interface-waiter
  16. cjdns-util-events-libuv-time
  17. )
  18. add_library(cjdns-angel
  19. Angel.c
  20. AngelInit.c
  21. )
  22. target_link_libraries(cjdns-angel
  23. cjdbenc
  24. cjdbenc_StandardBencSerializer
  25. cjdmemory
  26. cjdns-util-events-libuv
  27. cjdns-security
  28. cjdns-interface-waiter
  29. util # Hex_decode(), Pipe_createUniPipe()
  30. cjdns-util-log-writer
  31. cjdns-crypto-random
  32. cjdns-util-platform-socket
  33. cjdns-interface-addressable-adapter
  34. cjdns-interface-tuntap
  35. cjdns-util-platform-netdev
  36. interface
  37. )
  38. add_library(cjdns-admin-hermes
  39. Hermes.c
  40. )
  41. add_library(cjdns-core
  42. Core.c
  43. Core_admin.c
  44. )
  45. target_link_libraries(cjdns-core
  46. cjdns-admin-hermes
  47. crypto
  48. interface
  49. switch
  50. dht
  51. dhtcore
  52. cjdbenc
  53. cjdbenc_StandardBencSerializer
  54. cjdmemory
  55. cjdns-admin
  56. cjdnet
  57. cjdns-util-events-libuv
  58. cjdns-interface-waiter
  59. cjdns-util-log-filewriter
  60. cjdns-admin-logger
  61. cjdns-util-log-indirect
  62. cjdns-tunnel-iptunnel
  63. cjdns-crypto-random
  64. cjdns-crypto-random-libuv
  65. )
  66. add_executable(cjdns
  67. Cjdns.c
  68. )
  69. target_link_libraries(cjdns cjdns-angel cjdns-core)
  70. add_executable(cjdroute2
  71. cjdroute2.c
  72. )
  73. target_link_libraries(cjdroute2
  74. cjdns-angel
  75. cjdns-core
  76. cjdns-admin-client
  77. crypto
  78. cjdns-crypto-bench
  79. cjdns-util-events-libuv
  80. cjdbenc_StandardBencSerializer
  81. cjdbenc_JsonBencSerializer
  82. cjdns-util-log-writer
  83. cjdns-crypto-random
  84. cjdns-util-version-version
  85. cjdns-interface-waiter
  86. )
  87. install(TARGETS cjdroute2
  88. RENAME cjdroute
  89. RUNTIME DESTINATION bin
  90. )
  91. enable_testing()
  92. #add_subdirectory(test)