File tree 1 file changed +14
-20
lines changed
1 file changed +14
-20
lines changed Original file line number Diff line number Diff line change 1
1
#ADDTEST(hash_functions)
2
2
3
- set (SRC
4
- nmhash_scalar.c
5
- pengyhash.c
6
- SpookyV2.cpp
7
- SpookyV2Test.cpp
8
- waterhash.c
9
- generate_hash_arrays.cpp
10
- )
11
-
12
3
enable_language (CXX)
13
4
enable_language (C)
14
5
15
- add_library (libc_hash ${SRC} )
16
-
17
- set (CMAKE_FORTRAN_LINK_EXECUTABLE "<CMAKE_Fortran_COMPILER> <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" )
18
-
19
- add_executable (test_hash_functions test_hash_functions.f90)
20
- target_link_libraries (test_hash_functions "${PROJECT_NAME} " "test-drive::test-drive" "libc_hash" )
21
- add_test (NAME hash_functions
22
- COMMAND $<TARGET_FILE:test_hash_functions> ${CMAKE_CURRENT_BINARY_DIR}
23
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
24
-
25
- set_target_properties (test_hash_functions PROPERTIES LINKER_LANGUAGE FORTRAN)
6
+ ADDTEST(hash_functions)
7
+ target_sources (
8
+ test_hash_functions
9
+ PRIVATE
10
+ nmhash_scalar.c
11
+ pengyhash.c
12
+ SpookyV2.cpp
13
+ SpookyV2Test.cpp
14
+ waterhash.c
15
+ generate_hash_arrays.cpp
16
+ )
17
+ if (CMAKE_Fortran_COMPILER_ID MATCHES "^Intel" )
18
+ set_target_properties (test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
19
+ endif ()
You can’t perform that action at this time.
0 commit comments