# Scalar_Helmholtz - A linear solver the scalar helmholtz equation # Copyright (C) 2010-2026 Eric Bechet # # See the LICENSE file for contributions and license information. # Please report all bugs and problems to . # cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # if CMAKE_BUILD_TYPE is specified use it; otherwise set the default # build type to "RelWithDebInfo" ("-O2 -g" with gcc) prior to calling # project() if(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose build type") else(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose build type") endif(DEFINED CMAKE_BUILD_TYPE) project(scalar_helmholtz_xfem CXX) include_directories(. ../scalar_helmholtz ../../genLevelSet ../bimaterial_xfem) set(SRC helmholtz_xfem.cpp helmholtz_xfem_domain.cpp) set (LINK_LIBRARIES shared scalar_helmholtz_shared genLevelSet_shared ${GMSH_EXTERNAL_LIBRARIES}) add_executable(scalar_helmholtz_xfem ${SRC} main_helmholtz_xfem.cpp ) target_link_libraries(scalar_helmholtz_xfem ${LINK_LIBRARIES} genFem) add_library(scalar_helmholtz_xfem_shared SHARED ${SRC}) target_link_libraries(scalar_helmholtz_xfem_shared ${LINK_LIBRARIES} genFem_shared)