You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
cmake_minimum_required(VERSION 3.16)
|
|
project(IGATrimGauss)
|
|
|
|
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
# Libigl
|
|
include(libigl)
|
|
|
|
# Enable the target igl::glfw
|
|
igl_include(core)
|
|
igl_include(glfw)
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
set(EXTERNALDIR "${CMAKE_CURRENT_SOURCE_DIR}/external")
|
|
|
|
# set compile flags
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
|
|
|
|
|
# MshIO
|
|
add_subdirectory(external/MshIO)
|
|
link_libraries(mshio::mshio)
|
|
|
|
# add eigen
|
|
find_package(Eigen3 REQUIRED)
|
|
include_directories(${EIGEN3_INCLUDE_DIRS})
|
|
link_libraries(Eigen3::Eigen)
|
|
|
|
find_package(fmt REQUIRED)
|
|
link_libraries(fmt::fmt)
|
|
|
|
find_package(spdlog REQUIRED)
|
|
link_libraries(spdlog::spdlog)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
include_directories(${PROJECT_SOURCE_DIR}/external)
|
|
include_directories(src/LinSysSolver)
|
|
|
|
link_libraries(igl::glfw)
|
|
|
|
|
|
add_subdirectory(src)
|