Commit 3cea76c5 by Christophe Geuzaine

try a bit harder on windows

parent 4f12bf80
Pipeline #1207 passed with stage
in 53 minutes 41 seconds
......@@ -17,9 +17,19 @@ endif(NOT GMSH_INC)
if(GMSH_LIB MATCHES ".a")
find_library(BLAS_LIB blas)
if(BLAS_LIB)
list(APPEND EXTRA_LIBS ${BLAS_LIB})
endif(BLAS_LIB)
find_library(LAPACK_LIB lapack)
if(LAPACK_LIB)
list(APPEND EXTRA_LIBS ${LAPACK_LIB})
endif(LAPACK_LIB)
endif(GMSH_LIB MATCHES ".a")
if(WIN32 OR CYGWIN)
list(APPEND EXTRA_LIBS winmm wsock32 ws2_32 psapi)
endif(WIN32 OR CYGWIN)
include_directories(${GMSH_INC})
file(GLOB DEMOS *.cpp)
......@@ -30,7 +40,7 @@ foreach(DEMO ${DEMOS})
else()
add_executable(${DEMONAME} ${DEMO})
endif()
target_link_libraries(${DEMONAME} ${GMSH_LIB} ${LAPACK_LIB} ${BLAS_LIB})
target_link_libraries(${DEMONAME} ${GMSH_LIB} ${EXTRA_LIBS})
endforeach(DEMO)
find_library(GMSHC_LIB gmshc)
......@@ -39,5 +49,5 @@ file(GLOB DEMOS *.c)
foreach(DEMO ${DEMOS})
get_filename_component(DEMONAME ${DEMO} NAME_WE)
add_executable(${DEMONAME}c ${DEMO})
target_link_libraries(${DEMONAME}c ${GMSHC_LIB} ${GMSH_LIB} ${LAPACK_LIB} ${BLAS_LIB})
target_link_libraries(${DEMONAME}c ${GMSHC_LIB} ${GMSH_LIB} ${EXTRA_LIBS})
endforeach(DEMO)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment