diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-07-02 10:53:55 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-07-02 10:53:55 -0400 |
commit | 5803dc0fdb911a67ad9ca1ef9600edc58331d55a (patch) | |
tree | 0289621a8a98b3dd91a7d9b0e35ec62b5c160e24 /CMakeLists.txt | |
parent | 8e0934853a374eb340ee0dd96fd21a3d7c74183d (diff) | |
download | splitfits-5803dc0fdb911a67ad9ca1ef9600edc58331d55a.tar.gz |
Add basic test framework and a few tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea12358..5287d06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,5 +5,11 @@ set(CMAKE_C_STANDARD 99) add_executable(splitfits splitfits.c) +file(GLOB TEST_FRAMEWORK "tests") +file(COPY "test.sh" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +file(COPY ${TEST_FRAMEWORK} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + +add_custom_target(check "${CMAKE_CURRENT_BINARY_DIR}/test.sh") + install(TARGETS splitfits RUNTIME) |