更新demo可执行文件名称,加上模块名作为前缀

This commit is contained in:
yangwei
2019-05-08 15:29:55 +08:00
parent 940c262b48
commit bcd4bfe3ed
2 changed files with 12 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ set(CMAKE_INSTALL_PREFIX /opt/MESA)
install(TARGETS ${lib_name}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
install(FILES inc/${lib_name}.h DESTINATION
${CMAKE_INSTALL_PREFIX}/include/MESA)
${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT devel)
@@ -57,7 +57,7 @@ file(GLOB DEMO
"demo/*.cpp"
)
add_executable(demo ${DEMO})
target_link_libraries(demo pthread ${lib_name}_static)
add_executable(${lib_name}_demo ${DEMO})
target_link_libraries(${lib_name}_demo pthread ${lib_name}_static)
include(Package)