Skip to content

Commit

Permalink
[example] On Windows do not build some examples without WinGetOps
Browse files Browse the repository at this point in the history
  • Loading branch information
gruenich committed Nov 25, 2023
1 parent fc61107 commit 1382d30
Showing 1 changed file with 85 additions and 77 deletions.
162 changes: 85 additions & 77 deletions EXAMPLE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,27 @@ add_executable(clinsol1
clinsol1.c)
target_link_libraries(clinsol1 superlu)

add_executable(clinsolx
${_DEPENDENCY_ALL}
clinsolx.c)
target_link_libraries(clinsolx superlu)

add_executable(clinsolx1
${_DEPENDENCY_ALL}
clinsolx1.c)
target_link_libraries(clinsolx1 superlu)

add_executable(clinsolx2
${_DEPENDENCY_ALL}
clinsolx2.c)
target_link_libraries(clinsolx2 superlu)

add_executable(clinsolx3
${_DEPENDENCY_ALL}
clinsolx3.c)
target_link_libraries(clinsolx3 superlu)
if(NOT MSVC OR (MSVC AND WinGetOpt_FOUND))
add_executable(clinsolx
${_DEPENDENCY_ALL}
clinsolx.c)
target_link_libraries(clinsolx superlu)

add_executable(clinsolx1
${_DEPENDENCY_ALL}
clinsolx1.c)
target_link_libraries(clinsolx1 superlu)

add_executable(clinsolx2
${_DEPENDENCY_ALL}
clinsolx2.c)
target_link_libraries(clinsolx2 superlu)

add_executable(clinsolx3
${_DEPENDENCY_ALL}
clinsolx3.c)
target_link_libraries(clinsolx3 superlu)
endif()

# examples for double
add_executable(ditersol
Expand All @@ -96,25 +98,27 @@ add_executable(dlinsol1
dlinsol1.c)
target_link_libraries(dlinsol1 superlu)

add_executable(dlinsolx
${_DEPENDENCY_ALL}
dlinsolx.c)
target_link_libraries(dlinsolx superlu)

add_executable(dlinsolx1
${_DEPENDENCY_ALL}
dlinsolx1.c)
target_link_libraries(dlinsolx1 superlu)

add_executable(dlinsolx2
${_DEPENDENCY_ALL}
dlinsolx2.c)
target_link_libraries(dlinsolx2 superlu)

add_executable(dlinsolx3
${_DEPENDENCY_ALL}
dlinsolx3.c)
target_link_libraries(dlinsolx3 superlu)
if(NOT MSVC OR (MSVC AND WinGetOpt_FOUND))
add_executable(dlinsolx
${_DEPENDENCY_ALL}
dlinsolx.c)
target_link_libraries(dlinsolx superlu)

add_executable(dlinsolx1
${_DEPENDENCY_ALL}
dlinsolx1.c)
target_link_libraries(dlinsolx1 superlu)

add_executable(dlinsolx2
${_DEPENDENCY_ALL}
dlinsolx2.c)
target_link_libraries(dlinsolx2 superlu)

add_executable(dlinsolx3
${_DEPENDENCY_ALL}
dlinsolx3.c)
target_link_libraries(dlinsolx3 superlu)
endif()

# examples for float
add_executable(sitersol
Expand All @@ -137,25 +141,27 @@ add_executable(slinsol1
slinsol1.c)
target_link_libraries(slinsol1 superlu)

add_executable(slinsolx
${_DEPENDENCY_ALL}
slinsolx.c)
target_link_libraries(slinsolx superlu)

add_executable(slinsolx1
${_DEPENDENCY_ALL}
slinsolx1.c)
target_link_libraries(slinsolx1 superlu)

add_executable(slinsolx2
${_DEPENDENCY_ALL}
slinsolx2.c)
target_link_libraries(slinsolx2 superlu)

add_executable(slinsolx3
${_DEPENDENCY_ALL}
slinsolx3.c)
target_link_libraries(slinsolx3 superlu)
if(NOT MSVC OR (MSVC AND WinGetOpt_FOUND))
add_executable(slinsolx
${_DEPENDENCY_ALL}
slinsolx.c)
target_link_libraries(slinsolx superlu)

add_executable(slinsolx1
${_DEPENDENCY_ALL}
slinsolx1.c)
target_link_libraries(slinsolx1 superlu)

add_executable(slinsolx2
${_DEPENDENCY_ALL}
slinsolx2.c)
target_link_libraries(slinsolx2 superlu)

add_executable(slinsolx3
${_DEPENDENCY_ALL}
slinsolx3.c)
target_link_libraries(slinsolx3 superlu)
endif()

# examples for double complex
add_executable(zitersol
Expand All @@ -178,27 +184,29 @@ add_executable(zlinsol1
zlinsol1.c)
target_link_libraries(zlinsol1 superlu)

add_executable(zlinsolx
${_DEPENDENCY_ALL}
zlinsolx.c)
target_link_libraries(zlinsolx superlu)

add_executable(zlinsolx1
${_DEPENDENCY_ALL}
zlinsolx1.c)
target_link_libraries(zlinsolx1 superlu)

add_executable(zlinsolx2
${_DEPENDENCY_ALL}
zlinsolx2.c)
target_link_libraries(zlinsolx2 superlu)

add_executable(zlinsolx3
${_DEPENDENCY_ALL}
zlinsolx3.c)
target_link_libraries(zlinsolx3 superlu)
if(NOT MSVC OR (MSVC AND WinGetOpt_FOUND))
add_executable(zlinsolx
${_DEPENDENCY_ALL}
zlinsolx.c)
target_link_libraries(zlinsolx superlu)

add_executable(zlinsolx1
${_DEPENDENCY_ALL}
zlinsolx1.c)
target_link_libraries(zlinsolx1 superlu)

add_executable(zlinsolx2
${_DEPENDENCY_ALL}
zlinsolx2.c)
target_link_libraries(zlinsolx2 superlu)

add_executable(zlinsolx3
${_DEPENDENCY_ALL}
zlinsolx3.c)
target_link_libraries(zlinsolx3 superlu)
endif()

if(MSVC)
if(MSVC AND WinGetOpt_FOUND)
set(NEEDS_GETOPT
clinsolx clinsolx1 clinsolx2 clinsolx3
dlinsolx dlinsolx1 dlinsolx2 dlinsolx3
Expand Down

0 comments on commit 1382d30

Please sign in to comment.