cmake: rename library from capstone to libcapstone
This commit is contained in:
parent
96ecc338ec
commit
f6af50903b
|
@ -95,11 +95,11 @@ endif ()
|
|||
include_directories("${PROJECT_SOURCE_DIR}/include")
|
||||
|
||||
if (BUILD_STATIC)
|
||||
add_library(capstone STATIC ${SOURCES})
|
||||
add_library(libcapstone STATIC ${SOURCES})
|
||||
else ()
|
||||
add_library(capstone SHARED ${SOURCES})
|
||||
add_library(libcapstone SHARED ${SOURCES})
|
||||
endif ()
|
||||
set_target_properties(capstone PROPERTIES
|
||||
set_target_properties(libcapstone PROPERTIES
|
||||
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
|
||||
SOVERSION ${VERSION_MAJOR})
|
||||
|
||||
|
@ -107,7 +107,7 @@ if (BUILD_TESTS)
|
|||
foreach (TSRC ${TEST_SOURCES})
|
||||
STRING(REGEX REPLACE ".c$" "" TBIN ${TSRC})
|
||||
add_executable(${TBIN} "tests/${TSRC}")
|
||||
target_link_libraries(${TBIN} capstone)
|
||||
target_link_libraries(${TBIN} libcapstone)
|
||||
endforeach ()
|
||||
endif ()
|
||||
|
||||
|
@ -115,7 +115,7 @@ set(INCLUDES arm64.h arm.h capstone.h mips.h ppc.h x86.h)
|
|||
foreach (INC ${INCLUDES})
|
||||
install(FILES "include/${INC}" DESTINATION include/capstone)
|
||||
endforeach ()
|
||||
install(TARGETS capstone
|
||||
install(TARGETS libcapstone
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
|
Loading…
Reference in New Issue