Skip to content

Commit a4252e6

Browse files
committed
feat: cmake sets libNetPlugins to the specified directory (DDE)
1 parent 08d2c8b commit a4252e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ set(LIB_SHARED_NAME "MonitorInfo")
33
file(GLOB DIR_LIB "*.h" "*.cpp")
44
add_library(${LIB_SHARED_NAME} SHARED ${DIR_LIB}) # 生成动态库 MonitorInfo,
55
target_link_libraries(${LIB_SHARED_NAME} PUBLIC ${REQUIRED_LIBS_QUALIFIED}) # 链接外部 Qt 库,且共享
6+
7+
install(TARGETS ${LIB_SHARED_NAME} LIBRARY DESTINATION /usr/lib)

0 commit comments

Comments
 (0)