1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2025-03-25 00:35:41 +00:00

Don't install disasmtool if BDD_INCLUDE_TOOL is OFF

This commit is contained in:
Ionel-Cristinel ANICHITEI 2021-03-30 17:25:54 +03:00
parent 42497c3ee6
commit cc6cf1e2b6

View File

@ -186,7 +186,7 @@ if (${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
install(
TARGETS bddisasm bdshemu disasmtool
TARGETS bddisasm bdshemu
EXPORT bddisasmTargets
INCLUDES
DESTINATION ${BDDISASM_INSTALL_INCLUDE_DIR}
@ -196,6 +196,12 @@ if (${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
COMPONENT bddisasm_Runtime
NAMELINK_COMPONENT bddisasm_Development
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT bddisasm_Development)
if (BDD_INCLUDE_TOOL)
install(
TARGETS disasmtool
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT bddisasm_Runtime)
endif ()
install(
EXPORT bddisasmTargets