update build system
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user