aboutsummaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/CMakeLists.txt')
-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