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")
|
include_directories("${PROJECT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
if (BUILD_STATIC)
|
if (BUILD_STATIC)
|
||||||
add_library(capstone STATIC ${SOURCES})
|
add_library(libcapstone STATIC ${SOURCES})
|
||||||
else ()
|
else ()
|
||||||
add_library(capstone SHARED ${SOURCES})
|
add_library(libcapstone SHARED ${SOURCES})
|
||||||
endif ()
|
endif ()
|
||||||
set_target_properties(capstone PROPERTIES
|
set_target_properties(libcapstone PROPERTIES
|
||||||
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
|
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
|
||||||
SOVERSION ${VERSION_MAJOR})
|
SOVERSION ${VERSION_MAJOR})
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ if (BUILD_TESTS)
|
||||||
foreach (TSRC ${TEST_SOURCES})
|
foreach (TSRC ${TEST_SOURCES})
|
||||||
STRING(REGEX REPLACE ".c$" "" TBIN ${TSRC})
|
STRING(REGEX REPLACE ".c$" "" TBIN ${TSRC})
|
||||||
add_executable(${TBIN} "tests/${TSRC}")
|
add_executable(${TBIN} "tests/${TSRC}")
|
||||||
target_link_libraries(${TBIN} capstone)
|
target_link_libraries(${TBIN} libcapstone)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ set(INCLUDES arm64.h arm.h capstone.h mips.h ppc.h x86.h)
|
||||||
foreach (INC ${INCLUDES})
|
foreach (INC ${INCLUDES})
|
||||||
install(FILES "include/${INC}" DESTINATION include/capstone)
|
install(FILES "include/${INC}" DESTINATION include/capstone)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
install(TARGETS capstone
|
install(TARGETS libcapstone
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib)
|
ARCHIVE DESTINATION lib)
|
||||||
|
|
Loading…
Reference in New Issue