
用dll要把h文件也要加进来,代码文件里面引用.h
CMakeList.txt中加入
include_directories(${CMAKE_SOURCE_DIR}/path/to/headers)
target_link_libraries(graph union_set.dll)
全文完

用dll要把h文件也要加进来,代码文件里面引用.h
CMakeList.txt中加入
include_directories(${CMAKE_SOURCE_DIR}/path/to/headers)
target_link_libraries(graph union_set.dll)
讨论与留言 0
还没有留言,欢迎分享你的想法。