From cc6cf1e2b6259e80c82877bcfe7051485588f905 Mon Sep 17 00:00:00 2001 From: Ionel-Cristinel ANICHITEI Date: Tue, 30 Mar 2021 17:25:54 +0300 Subject: [PATCH] Don't install disasmtool if BDD_INCLUDE_TOOL is OFF --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bb642c..12ce8bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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