diff options
author | Chunseok Lee <chunseok.lee@samsung.com> | 2020-12-14 14:43:04 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2020-12-14 14:43:04 +0900 |
commit | 12d88feea8573f8490629cf62fc342b152e57d65 (patch) | |
tree | 3c734cc4d629834d2d523f4575ef84cd64684e57 /compiler/dredd-rule-lib/CMakeLists.txt | |
parent | d6b371e095d737922187a518b8faba1ef6f3a2b1 (diff) | |
download | nnfw-12d88feea8573f8490629cf62fc342b152e57d65.tar.gz nnfw-12d88feea8573f8490629cf62fc342b152e57d65.tar.bz2 nnfw-12d88feea8573f8490629cf62fc342b152e57d65.zip |
Imported Upstream version 1.11.0upstream/1.11.0
Diffstat (limited to 'compiler/dredd-rule-lib/CMakeLists.txt')
-rw-r--r-- | compiler/dredd-rule-lib/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/compiler/dredd-rule-lib/CMakeLists.txt b/compiler/dredd-rule-lib/CMakeLists.txt new file mode 100644 index 000000000..b39d86272 --- /dev/null +++ b/compiler/dredd-rule-lib/CMakeLists.txt @@ -0,0 +1,21 @@ +# +# copy rule-lib.sh (a library of shell script functions) +# +set(SOURCE_RULE_LIB "${CMAKE_CURRENT_SOURCE_DIR}/rule-lib.sh") +set(TARGET_RULE_LIB "${CMAKE_CURRENT_BINARY_DIR}/rule-lib.sh") + +add_custom_command( + OUTPUT ${TARGET_RULE_LIB} + COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE_RULE_LIB}" "${TARGET_RULE_LIB}" + DEPENDS ${SOURCE_RULE_LIB} + COMMENT "Generate rule lib" +) + +# Generate dependencies +add_custom_target(dredd_rule_lib ALL DEPENDS ${TARGET_RULE_LIB}) + +# How to get the path of rule-lib.sh in other CMakeLists.txt +# +# get_target_property(DREDD_RULE_LIB_DIR +# dredd_rule_lib BINARY_DIR) +# set(RULE_LIB_PATH "${DREDD_RULE_LIB_DIR}/rule-lib.sh") |