diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-08-11 08:18:05 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-08-11 08:24:20 +0200 |
commit | c13952824e2cc110b9405e1bc9017801dd938ac0 (patch) | |
tree | c85896cd8453a103e30eb0d47b8d8448ea6dab4b /htdocs/CMakeLists.txt | |
parent | eb6a78be524aaee70fca55b86a7b065763591178 (diff) |
Update to new Tempate
Diffstat (limited to 'htdocs/CMakeLists.txt')
-rw-r--r-- | htdocs/CMakeLists.txt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/htdocs/CMakeLists.txt b/htdocs/CMakeLists.txt index 60f6cf8..e85ca3c 100644 --- a/htdocs/CMakeLists.txt +++ b/htdocs/CMakeLists.txt @@ -21,20 +21,20 @@ ################################################## # HTML Testing Files ################################################## -PROJECT_TARGET_ADD(www_test) +PROJECT_TARGET_ADD(htdocs) file(GLOB SOURCE_FILES "*.html" "*.js" "*.jpg" "*.css") add_custom_target(${TARGET_NAME} - DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} + DEPENDS ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME} ) add_custom_command( DEPENDS ${SOURCE_FILES} - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} - COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} - COMMAND touch ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} - COMMAND cp -r ${SOURCE_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} + OUTPUT ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME} + COMMAND mkdir -p ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME} + COMMAND touch ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME} + COMMAND cp -r ${SOURCE_FILES} ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME} ) SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES @@ -42,6 +42,3 @@ PROJECT_TARGET_ADD(www_test) OUTPUT_NAME ${TARGET_NAME} ) - # use only under native Linux when using "make install" - install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR} DESTINATION .) - |