Beruflich Dokumente
Kultur Dokumente
0 FATAL_ERROR)
# TODO: Gmsh should create a cmake file when installing the lib, so all the
# external dependencies can be obtained automatically
set(CMAKE_CXX_STANDARD 11)
find_library(GMSH_LIB gmsh)
if(NOT GMSH_LIB)
message(FATAL_ERROR "Could not find libgmsh")
endif()
find_path(GMSH_INC gmsh.h)
if(NOT GMSH_INC)
message(FATAL_ERROR "Could not find gmsh.h")
endif()
if(WIN32 OR CYGWIN)
list(APPEND EXTRA_LIBS winmm wsock32 ws2_32 psapi)
endif()
include_directories(${GMSH_INC})
include(CTest)
find_program(PYTHON python)
if(PYTHON)
file(GLOB DEMOS *.py)
foreach(DEMO ${DEMOS})
get_filename_component(DEMONAME ${DEMO} NAME_WE)
add_test(${DEMONAME}_py ${PYTHON} ${DEMO})
endforeach()
endif()
find_program(JULIA julia)
if(JULIA)
file(GLOB DEMOS *.jl)
foreach(DEMO ${DEMOS})
get_filename_component(DEMONAME ${DEMO} NAME_WE)
add_test(${DEMONAME}_jl ${JULIA} ${DEMO})
endforeach()
endif()