diff --git a/tools/resource/CMakeLists.txt b/tools/resource/CMakeLists.txt index c0a147d7..5ce6f66a 100644 --- a/tools/resource/CMakeLists.txt +++ b/tools/resource/CMakeLists.txt @@ -1,6 +1,12 @@ psemek_add_build_tool(psemek-resource-compiler FALSE compiler.cpp) function(psemek_add_resources TARGET) + if(PSEMEK_PACKAGE_MODE) + if(NOT (TARGET ${TARGET})) + return() + endif() + endif() + get_target_property(OUT_DIR ${TARGET} BINARY_DIR) get_target_property(INPUT_DIR ${TARGET} SOURCE_DIR)