1 Star 0 Fork 1

吉祥水/mofem-old

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 887 Bytes
一键复制 编辑 原始数据 按行查看 历史
woggy89 提交于 2015-03-10 21:10 . Got rid of GUI code
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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jixiangshui/mofem-old.git
git@gitee.com:jixiangshui/mofem-old.git
jixiangshui
mofem-old
mofem-old
master

搜索帮助