-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
23 lines (20 loc) · 815 Bytes
/
CMakeLists.txt
File metadata and controls
23 lines (20 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(testfile ${TEST_SOURCES})
file(RELATIVE_PATH filename ${CMAKE_CURRENT_SOURCE_DIR} ${testfile})
string(REPLACE ".cpp" "" file ${filename})
add_executable(${file} ${testfile})
target_link_libraries(${file} ${LINK_TEST_FLAGS})
add_test(AllTests ${file})
endforeach(testfile ${TEST_SOURCES})
if(USE_CUDA)
add_executable(cuda_list list.cu)
target_compile_options(cuda_list PUBLIC ${COMPILE_TEST_FLAGS})
target_link_libraries(cuda_list ${LINK_TEST_FLAGS})
add_test(AllTests cuda_list)
endif()
# TODO add_subdirectory(decoding)
add_subdirectory(mceliece)
# TODO not implemented add_subdirectory(quasicyclic)
# TODO add_subdirectory(lowweight)
# TODO currently not implemented add_subdirectory(ternary)
add_subdirectory(fq)