diff --git a/CMakeLists.txt b/CMakeLists.txt index 214527daf..24df8d989 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ addBundledLibraries() # Add ImHex sources add_subdirectory(lib/libimhex) add_subdirectory(main) -add_custom_target(imhex ALL DEPENDS main libimhex ${PLUGINS}) +add_custom_target(imhex ALL DEPENDS main libimhex) # Add unit tests enable_testing() diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index c65f5d0f2..5f241af67 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -184,6 +184,8 @@ macro(createPackage) install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) endif () endif () + + add_dependencies(imhex ${plugin}) endif () endforeach()