代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 2.8.12)
PROJECT(savgol)
SET(CMAKE_BUILD_TYPE Debug)
find_package(PkgConfig)
pkg_check_modules( EIGEN3 REQUIRED eigen3 )
include_directories( ${EIGEN3_INCLUDE_DIRS} )
add_definitions(${EIGEN_DEFINITIONS})
OPTION(ENABLE_CXX17 "Enable C++17 support" ON)
IF(ENABLE_CXX17)
INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
IF(COMPILER_SUPPORTS_CXX17)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
ELSEIF(COMPILER_SUPPORTS_CXX0X)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
ELSE()
MESSAGE(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support. Please use a different C++ compiler.")
ENDIF()
ENDIF(ENABLE_CXX17)
INCLUDE_DIRECTORIES(EIGEN3_INCLUDE_DIRS
AND "${PROJECT_SOURCE_DIR}/include")
#Declare the executable target built from your sources
add_executable(savgol tests.cpp)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。