@@ -16,38 +16,28 @@ endif()
16
16
# The C compiler is used so that linters and other tools recognize that our
17
17
# code is in C and can give appropriate warnings.
18
18
19
- add_library (tph_poisson_f STATIC "src/tph_poisson_f .c" )
20
- add_library (thinks::tph_poisson_f ALIAS tph_poisson_f )
21
- target_link_libraries (tph_poisson_f PUBLIC thinks::tph_poisson)
22
- target_compile_features (tph_poisson_f PRIVATE c_std_11)
19
+ add_library (tph_poisson_f32 STATIC "src/tph_poisson_f32 .c" )
20
+ add_library (thinks::tph_poisson_f32 ALIAS tph_poisson_f32 )
21
+ target_link_libraries (tph_poisson_f32 PUBLIC thinks::tph_poisson)
22
+ target_compile_features (tph_poisson_f32 PRIVATE c_std_11)
23
23
24
- add_library (tph_poisson_d STATIC "src/tph_poisson_d .c" )
25
- add_library (thinks::tph_poisson_d ALIAS tph_poisson_d )
26
- target_link_libraries (tph_poisson_d PUBLIC thinks::tph_poisson)
27
- target_compile_features (tph_poisson_d PRIVATE c_std_11)
24
+ add_library (tph_poisson_f64 STATIC "src/tph_poisson_f64 .c" )
25
+ add_library (thinks::tph_poisson_f64 ALIAS tph_poisson_f64 )
26
+ target_link_libraries (tph_poisson_f64 PUBLIC thinks::tph_poisson)
27
+ target_compile_features (tph_poisson_f64 PRIVATE c_std_11)
28
28
29
29
# ---- Tests ----
30
30
31
- # add_executable(tph_poisson_test src/tph_poisson_test.cpp)
32
- # # set_property(
33
- # # SOURCE src/tph_poisson_test.cpp PROPERTY
34
- # # COMPILE_DEFINITIONS INIT_TEST_IMPLEMENTATION
35
- # # )
36
- # target_link_libraries(tph_poisson_test PRIVATE thinks::tph_poisson)
37
- # target_compile_features(tph_poisson_test PRIVATE cxx_std_17)
38
-
39
- # add_test(NAME tph_poisson_test COMMAND tph_poisson_test)
40
-
41
- # <float>
31
+ # <f32>
42
32
add_executable (tph_poisson_f32_test "src/tph_poisson_test.cpp" )
43
- target_link_libraries (tph_poisson_f32_test PRIVATE thinks::tph_poisson_f )
33
+ target_link_libraries (tph_poisson_f32_test PRIVATE thinks::tph_poisson_f32 )
44
34
target_compile_features (tph_poisson_f32_test PRIVATE cxx_std_17)
45
35
add_test (NAME tph_poisson_f32_test COMMAND tph_poisson_f32_test)
46
36
47
- # <double >
37
+ # <f64 >
48
38
add_executable (tph_poisson_f64_test "src/tph_poisson_test.cpp" )
49
- target_link_libraries (tph_poisson_f64_test PRIVATE thinks::tph_poisson_d )
50
- target_compile_definitions (tph_poisson_f64_test PRIVATE TPH_POISSON_TEST_USE_DOUBLE )
39
+ target_link_libraries (tph_poisson_f64_test PRIVATE thinks::tph_poisson_f64 )
40
+ target_compile_definitions (tph_poisson_f64_test PRIVATE TPH_POISSON_TEST_USE_F64 )
51
41
target_compile_features (tph_poisson_f64_test PRIVATE cxx_std_17)
52
42
add_test (NAME tph_poisson_f64_test COMMAND tph_poisson_f64_test)
53
43
0 commit comments