1
0

CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. set(ethif "")
  13. if(HAS_ETH_INTERFACE)
  14. add_library(cjdns-interface-eth
  15. ETHInterface_${SYSTEM}.c
  16. ETHInterface_admin.c
  17. )
  18. target_link_libraries(cjdns-interface-eth
  19. cjdns-util-events-libuv
  20. )
  21. set(ethif cjdns-interface-eth)
  22. endif()
  23. add_library(interface
  24. UDPInterface.c
  25. UDPInterface_admin.c
  26. InterfaceConnector.c
  27. SessionManager.c
  28. SessionManager_admin.c
  29. ICMP6Generator.c
  30. MultiInterface.c
  31. FramingInterface.c
  32. InterfaceController_admin.c
  33. )
  34. target_link_libraries(interface
  35. ${ethif}
  36. cjdns-interface-tuntap
  37. util
  38. cjdns-crypto-key
  39. cjdns-util-platform-socket
  40. )
  41. add_subdirectory(addressable)
  42. add_subdirectory(tuntap)
  43. enable_testing()
  44. add_subdirectory(test)