update build system

This commit is contained in:
张壹
2021-08-01 10:25:17 +08:00
parent 253b66d3c7
commit 69a4b33b8f
3 changed files with 22 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ macro(add_sample name file)
# 添加可执行文件 命令行
add_executable(${name} sample/${file})
# 为安装文件添加动态库的搜索地址 在Windows下并没有什么用 直接忽略
set_target_properties(${name} PROPERTIES INSTALL_RPATH "/usr/local/lib")
set_target_properties(${name} PROPERTIES INSTALL_RPATH "/opt/lib")
# 链接动态库
target_link_libraries(${name} PUBLIC lbfgs)
endmacro()