edit CMakeLists.txt
This commit is contained in:
parent
fb98a740ea
commit
bbc63f3e25
@ -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
3
config.h.in
Normal file
@ -0,0 +1,3 @@
|
||||
#cmakedefine HAVE_CONFIG_H
|
||||
#cmakedefine _MSC_VER
|
||||
#cmakedefine USE_SSE
|
Loading…
Reference in New Issue
Block a user