CMakeLists.txt 874 B

1234567891011121314151617181920212223242526
  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(cjdmemory
  13. BufferAllocator.c
  14. MallocAllocator.c
  15. )
  16. add_library(cjdns-memory-canary
  17. CanaryAllocator.c
  18. )
  19. target_link_libraries(cjdns-memory-canary
  20. cjdns-crypto-random
  21. )
  22. # Everything must be tested.
  23. enable_testing()
  24. add_subdirectory(test)