Improve CPack deb generation
This commit is contained in:
@@ -10,6 +10,11 @@ if(ENABLE_LIB_livoxProto1)
|
||||
udpCommandDemuxer.cpp
|
||||
)
|
||||
|
||||
set_target_properties(livoxProto1 PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||
)
|
||||
|
||||
# Set config define for header generation
|
||||
add_compile_definitions(CONFIG_LIB_LIVOXPROTO1_ENABLED)
|
||||
target_include_directories(livoxProto1 PUBLIC ${Boost_INCLUDE_DIRS})
|
||||
@@ -25,5 +30,7 @@ if(ENABLE_LIB_livoxProto1)
|
||||
)
|
||||
|
||||
# Install rules
|
||||
install(TARGETS livoxProto1 DESTINATION lib)
|
||||
install(TARGETS livoxProto1
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_SKIP
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user