1
0

CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031
  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_subdirectory(dhtcore)
  13. find_package(NACL REQUIRED)
  14. include_directories(${NACL_INCLUDE_DIRS})
  15. add_library(dht
  16. DHTModuleRegistry.c
  17. SerializationModule.c
  18. ReplyModule.c
  19. )
  20. # This is needed because NACL must be built first because header files are generated.
  21. add_dependencies(dht NACL)
  22. target_link_libraries(dht cjdbenc cjdbenc_StandardBencSerializer util interface ${NACL_LIBRARIES})
  23. # Everything must be tested.
  24. enable_testing()
  25. add_subdirectory(test)