Do not create resources for non-built targets in package mode
This commit is contained in:
parent
afc0512dbe
commit
7eadc77557
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue