Skip to content

Commit c1a52e9

Browse files
committed
build: deploy eject_idb to IDABIN at build time
Switch the eject_idb executable from install-time deployment (install(TARGETS ...)) to build-time deployment via RUNTIME_OUTPUT_DIRECTORY for all configurations, so the binary lands in IDABIN on every build, matching the plugin deployment behavior.
1 parent 9a25501 commit c1a52e9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ find_package(idasdk REQUIRED)
1212
add_executable(eject_idb eject_idb.cpp utils.hpp README.md)
1313
set_source_files_properties(README.md PROPERTIES HEADER_FILE_ONLY TRUE)
1414

15-
# Deploy executable to IDA bin directory
16-
install(TARGETS eject_idb
17-
RUNTIME DESTINATION "${IDABIN}"
15+
# Deploy executable to IDA bin directory at build time
16+
set_target_properties(eject_idb PROPERTIES
17+
RUNTIME_OUTPUT_DIRECTORY "${IDABIN}"
1818
)
19+
foreach(config Debug Release RelWithDebInfo MinSizeRel)
20+
string(TOUPPER ${config} config_upper)
21+
set_target_properties(eject_idb PROPERTIES
22+
RUNTIME_OUTPUT_DIRECTORY_${config_upper} "${IDABIN}"
23+
)
24+
endforeach()
1925

2026
# IDA plugin (automatically deployed to $IDABIN/plugins/)
2127
ida_add_plugin(eject_plugin

0 commit comments

Comments
 (0)