diff options
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/CMakeLists.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/htdocs/CMakeLists.txt b/htdocs/CMakeLists.txt index 1266d70..751ff40 100644 --- a/htdocs/CMakeLists.txt +++ b/htdocs/CMakeLists.txt @@ -21,4 +21,21 @@ ################################################## # HTML Testing Files ################################################## -install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR} DESTINATION . FILES_MATCHING PATTERN "*.html" PATTERN "*.js" PATTERN "*.jpg") +PROJECT_TARGET_ADD(html-simple-test) + + add_custom_command(OUTPUT htdocs + DEPENDS ${TARGET_NAME} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMAND cp "*.html" PATTERN "*.js" PATTERN "*.jpg" ${CMAKE_CURRENT_BINARY_DIR} + ) + + add_custom_target(${TARGET_NAME} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}) + + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + LABELS "HTDOCS" + OUTPUT_NAME htdocs + ) + + # use only under native Linux when using "make install" + install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR} DESTINATION . FILES_MATCHING PATTERN "*.html" PATTERN "*.js" PATTERN "*.jpg") + |