aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJ08nY2017-10-14 14:19:02 +0200
committerJ08nY2017-10-14 23:11:11 +0200
commit5fe4358eeb74cd82008c336fc4f634548e5e3393 (patch)
tree8ea32d24ac4c6a62a026de3e77aaa68690d927b8 /test
parent4dece41c236a7e92ab04205e8b6e076a2514a528 (diff)
downloadecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.tar.gz
ecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.tar.zst
ecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.zip
Add lib/CMakeLists.txt.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 066defb..fabbcc9 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 2.8.11)
-project(test_ecgen C)
+
+# This is an issue because criterion contains a header "io/output.h" which is
+# after ecgen's "io/output.h" and so gets shadowed in the include directories
+# list which breaks all kinds of things when criterion souces #include "io/output.h".
+#
+# add_subdirectory(lib/criterion)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/criterion/include)
@@ -10,7 +15,7 @@ file(GLOB TEST_SRC "src/math/*.c" "src/gen/*.c" "src/cm/*.c" "src/invalid/*.c" "
file(GLOB TESTING_SRC "src/test/*.c")
add_executable(test_ecgen ${TEST_SRC} ${TESTING_SRC} ${SRC})
-target_link_libraries(test_ecgen pthread rt pari ${parson} ${sha1} ${criterion})
+target_link_libraries(test_ecgen pthread rt pari parson sha1 ${criterion})
enable_testing()
add_test(NAME test_ecgen COMMAND test_ecgen) \ No newline at end of file