mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
Fix the lib name on windows (#2950)
This commit is contained in:
parent
cf30b400f3
commit
ebe4ca5072
@ -46,6 +46,10 @@ else()
|
|||||||
link_directories("${RIZIN_INSTALL_DIR}/lib")
|
link_directories("${RIZIN_INSTALL_DIR}/lib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO: This version number should be fetched automatically
|
||||||
|
# instead of being hardcoded.
|
||||||
|
set (Rizin_VERSION 0.4)
|
||||||
|
|
||||||
set (RZ_LIBS rz_core rz_config rz_cons rz_io rz_util rz_flag rz_asm rz_debug
|
set (RZ_LIBS rz_core rz_config rz_cons rz_io rz_util rz_flag rz_asm rz_debug
|
||||||
rz_hash rz_bin rz_lang rz_il rz_analysis rz_parse rz_bp rz_egg rz_reg
|
rz_hash rz_bin rz_lang rz_il rz_analysis rz_parse rz_bp rz_egg rz_reg
|
||||||
rz_search rz_syscall rz_socket rz_magic rz_crypto rz_type rz_diff rz_sign
|
rz_search rz_syscall rz_socket rz_magic rz_crypto rz_type rz_diff rz_sign
|
||||||
@ -62,11 +66,11 @@ target_include_directories(Rizin INTERFACE
|
|||||||
|
|
||||||
install(TARGETS Rizin EXPORT CutterTargets)
|
install(TARGETS Rizin EXPORT CutterTargets)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
foreach(_lib ${RZ_LIBS} ${RZ_EXTRA_LIBS})
|
foreach(_lib ${RZ_LIBS} ${RZ_EXTRA_LIBS})
|
||||||
install(FILES "${RIZIN_INSTALL_DIR}/${RZ_INSTALL_BINPATH}/${_lib}.dll" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
install(FILES "${RIZIN_INSTALL_DIR}/${_lib}-${Rizin_VERSION}.dll" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
endforeach()
|
endforeach()
|
||||||
foreach(_exe ${RZ_BIN})
|
foreach(_exe ${RZ_BIN})
|
||||||
install(FILES "${RIZIN_INSTALL_DIR}/${RZ_INSTALL_BINPATH}/${_exe}.exe" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
install(FILES "${RIZIN_INSTALL_DIR}/${_exe}.exe" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
endforeach()
|
endforeach()
|
||||||
install(DIRECTORY "${RIZIN_INSTALL_DIR}/share" DESTINATION ".")
|
install(DIRECTORY "${RIZIN_INSTALL_DIR}/share" DESTINATION ".")
|
||||||
install(DIRECTORY "${RIZIN_INSTALL_DIR}/include" DESTINATION "."
|
install(DIRECTORY "${RIZIN_INSTALL_DIR}/include" DESTINATION "."
|
||||||
|
Loading…
Reference in New Issue
Block a user