# GenTextile - A composite textile generator # Copyright (C) 2011-2013 Frederic Duboeuf # # See the LICENSE.txt file for license information. # Please report all bugs and problems to . # 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(genTextile CXX) include_directories(. ../genFem ../genFem/genTensors) if(NOT DEFINED GMSH_PATH) set(GMSH_PATH "./gmsh" CACHE STRING "Gmsh Path") add_subdirectory(${GMSH_PATH} "${CMAKE_CURRENT_BINARY_DIR}/gmsh") list(APPEND EXTERNAL_LIBRARIES -lgsl) include_directories(${GMSH_PATH}/Common ${GMSH_PATH}/Numeric ${GMSH_PATH}/Geo ${GMSH_PATH}/Mesh ${GMSH_PATH}/Solver ${GMSH_PATH}/Post ${GMSH_PATH}/Plugin ${GMSH_PATH}/Graphics ${GMSH_PATH}/contrib/DiscreteIntegration ${GMSH_EXTERNAL_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/gmsh/Common ${EXTERNAL_INCLUDES} ${GMSH_PATH}/contrib/gmm ${GMSH_PATH}/contrib/MathEx ) endif(NOT DEFINED GMSH_PATH) set(SRC genTextile.cpp genDataT.cpp CompositeTextile.cpp) set (LINK_LIBRARIES genFem_shared shared ${GMSH_EXTERNAL_LIBRARIES}) add_executable(genTextile ${SRC} mainTextile.cpp ) add_library(genTextile_shared SHARED ${SRC}) target_link_libraries(genTextile ${LINK_LIBRARIES} ) target_link_libraries(genTextile_shared ${LINK_LIBRARIES} )