# Bimaterial_xfem - A solver for bimaterial problems using X-FEM # Copyright (C) 2012-2016 Frederic Duboeuf # # See the LICENSE.txt file for 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(bimaterial_xfem CXX) include_directories(. ../../cutmesh ../../genLevelSet ../elastic_genTerm_cutmesh_xfem ../elastic_genTerm ) set(SRC bimaterialXfemSolver.cpp) set (LINK_LIBRARIES shared elastic_genTerm_shared elastic_genTerm_cutmesh_xfem_shared genLevelSet_shared cutmesh_shared ${GMSH_EXTERNAL_LIBRARIES}) add_executable(bimaterial_xfem ${SRC} mainBimaterialXfem.cpp ) add_library(bimaterial_xfem_shared SHARED ${SRC}) target_link_libraries(bimaterial_xfem ${LINK_LIBRARIES} genFem) target_link_libraries(bimaterial_xfem_shared ${LINK_LIBRARIES} genFem_shared) if(GENFEM_ENABLE_TESTING) add_subdirectory(test) endif(GENFEM_ENABLE_TESTING)