X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-demo%2FCMakeLists.txt;h=918920c7ba1c2c1961dd1fd950d429e47993cbac;hb=abda8ae14a827586c8d6dd61509add4597b07212;hp=a554598cc363d4db676bb9ab6a43c4eb3e0b592b;hpb=3102ec9ce009d0f28355c5b7df9c5bd5013e6e75;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-demo/CMakeLists.txt b/CAN-binder/low-can-demo/CMakeLists.txt index a554598c..918920c7 100644 --- a/CAN-binder/low-can-demo/CMakeLists.txt +++ b/CAN-binder/low-can-demo/CMakeLists.txt @@ -17,9 +17,6 @@ # limitations under the License. ########################################################################### -# Add subdir targets -search_targets() - # Add target to project dependency list PROJECT_TARGET_ADD(low-can-demo) @@ -27,19 +24,20 @@ PROJECT_TARGET_ADD(low-can-demo) add_custom_command(OUTPUT dist.prod DEPENDS ${TARGET_NAME} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMAND npm install - COMMAND gulp build-app-prod + COMMAND [ -d "dist.prod" ] || npm install + COMMAND [ -d "dist.prod" ] || gulp build-app-prod + COMMAND touch dist.prod COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR}) add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod) - + # Binder exposes a unique public entry point SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "" LABELS "HTDOCS" OUTPUT_NAME dist.prod) # installation directory INSTALL(DIRECTORY dist.prod/ DESTINATION ${BINDINGS_INSTALL_DIR}) - populate_widget() \ No newline at end of file +# Add subdir targets +project_subdirs_add()