代码拉取完成,页面将自动刷新
CMAKE_MINIMUM_REQUIRED (VERSION 3.1)
PROJECT (mofem)
SET(EXECUTABLE_NAME mofem)
SET (${EXECUTABLE_NAME}_VERSION_MAJOR 0)
SET (${EXECUTABLE_NAME}_VERSION_MINOR 2)
# Sources
INCLUDE(CMakeSrcs.txt)
# Find Boost
# Make sure BOOST_ROOT environment variable is set
FIND_PACKAGE(Boost 1.5.7 REQUIRED)
IF(Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ENDIF()
# Find Eigen
SET(EIGEN_ROOT $ENV{EIGEN_ROOT} CACHE PATH "Eigen root directory")
INCLUDE_DIRECTORIES(${EIGEN_ROOT})
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
# Build types
UNSET(CMAKE_CONFIGURATION_TYPES CACHE)
SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Supported config types")
# No install
UNSET(CMAKE_INSTALL_PREFIX CACHE)
# Preproccessor
ADD_DEFINITIONS(-DEIGEN_DEFAULT_TO_ROW_MAJOR)
# Executable
ADD_EXECUTABLE(${EXECUTABLE_NAME} ${SRC_ALL})
# Source Groups
INCLUDE(CMakeSrcGroups.txt)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。