We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08d2c8b commit a4252e6Copy full SHA for a4252e6
1 file changed
lib/CMakeLists.txt
@@ -3,3 +3,5 @@ set(LIB_SHARED_NAME "MonitorInfo")
3
file(GLOB DIR_LIB "*.h" "*.cpp")
4
add_library(${LIB_SHARED_NAME} SHARED ${DIR_LIB}) # 生成动态库 MonitorInfo,
5
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