更新demo可执行文件名称,加上模块名作为前缀
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user