# gen_LevelSet - An automatic generator of meshes from level-sets # Copyright (C) 2012-2016 Frederic Duboeuf,Eric Bechet # # 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(genLevelSet CXX) include_directories(.) set(SRC levelSetSolver.cpp genLevelSet.cpp genDataLS.cpp) set (LINK_LIBRARIES cutmesh_shared shared ${GMSH_EXTERNAL_LIBRARIES}) add_executable(genLevelSet ${SRC} mainLevelSet.cpp) add_library(genLevelSet_shared SHARED ${SRC}) if(CUTMESH_ENABLE_IBREP) list(APPEND LINK_LIBRARIES ibrep-dynamic) endif(CUTMESH_ENABLE_IBREP) target_link_libraries(genLevelSet ${LINK_LIBRARIES} genFem) target_link_libraries(genLevelSet_shared ${LINK_LIBRARIES} genFem_shared) add_executable(testBallManager ${SRC} mainBallManager.cpp) target_link_libraries(testBallManager ${LINK_LIBRARIES} genFem)