CMakeLists.txt 816 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8; mode: cmake -*-
  2. # test CMakeLists.txt
  3. # (c) lloda@sarc.name 2023
  4. # This library is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU Lesser General Public License as published by the Free
  6. # Software Foundation; either version 3 of the License, or (at your option) any
  7. # later version.
  8. cmake_minimum_required (VERSION 3.5)
  9. project (newra-test)
  10. include_directories ("..")
  11. set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../config)
  12. # -------------------
  13. # bindings
  14. # -------------------
  15. find_package (Guile REQUIRED)
  16. foreach (target everything format maxwell)
  17. add_test (${target} ${GUILE_EXECUTABLE} -q -L "${CMAKE_CURRENT_SOURCE_DIR}/../mod" "${CMAKE_CURRENT_SOURCE_DIR}/../test/${target}.scm")
  18. endforeach ()
  19. enable_testing ()