Skip to content

Commit

Permalink
fixing windows getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamonDinoia committed Aug 28, 2024
1 parent 3cd9b07 commit 2559a5e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions perftest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Each source test file is instantiated in single and double precision
set(PERFTESTS guru_timing_test manysmallprobs spreadtestnd spreadtestndall
perftest)
set(PERFTESTS guru_timing_test manysmallprobs spreadtestnd spreadtestndall)

foreach(TEST ${PERFTESTS})
add_executable(${TEST} ${TEST}.cpp)
Expand All @@ -16,3 +15,13 @@ foreach(TEST ${PERFTESTS})
endif()
finufft_link_test(${TEST}f)
endforeach()

include(CheckIncludeFile)
check_include_file("getopt.h" HAVE_GETOPT_H)
if(HAVE_GETOPT_H)
add_executable(perftest perftest.cpp)
if(FINUFFT_USE_DUCC0)
target_compile_definitions(perftest PRIVATE -DFINUFFT_USE_DUCC0)
endif()
finufft_link_test(perftest)
endif()

0 comments on commit 2559a5e

Please sign in to comment.