edit CMakeLists.txt

This commit is contained in:
2019-10-21 22:29:26 +08:00
parent fb98a740ea
commit bbc63f3e25
2 changed files with 6 additions and 2 deletions

View File

@@ -7,8 +7,9 @@ project(LIBLBFGS VERSION 1.1.0 LANGUAGES CXX)
# 设置安装地址
set(CMAKE_INSTALL_PREFIX /usr/local)
# 添加编译选项
option(LCG_FABS "use lcg's fabs" ON)
option(LCG_OPENMP "use openmp" ON)
option(HAVE_CONFIG_H "use config.h" ON)
option(_MSC_VER "use __msc_ver" OFF)
option(USE_SSE "use see" OFF)
# 加入一个头文件配置让cmake对源码进行操作
configure_file(
"${PROJECT_SOURCE_DIR}/config.h.in"

3
config.h.in Normal file
View File

@@ -0,0 +1,3 @@
#cmakedefine HAVE_CONFIG_H
#cmakedefine _MSC_VER
#cmakedefine USE_SSE