Do not create resources for non-built targets in package mode

This commit is contained in:
Nikita Lisitsa 2020-09-21 20:21:06 +03:00
parent afc0512dbe
commit 7eadc77557

View file

@ -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)