Put sources into dedicated directories
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 4 May 2017 09:21:15 +0000 (11:21 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 4 May 2017 09:21:15 +0000 (11:21 +0200)
Change-Id: I424377f4a25f45f6bfcea84ce59812fb674a861b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
examples/native/CMakeLists.txt
examples/native/app/xxxxxx-native-client.c [moved from examples/native/xxxxxx-native-client.c with 100% similarity]
examples/qml/CMakeLists.txt
examples/qml/app/xxxxxx-qml-app.qml [moved from examples/qml/xxxxxx-qml-app.qml with 100% similarity]
examples/service/CMakeLists.txt
examples/service/binding/xxxxxx-service-binding.c [moved from examples/service/xxxxxx-service-binding.c with 100% similarity]

index e7ae126..0361f72 100644 (file)
@@ -25,7 +25,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/etc/macros.cmake)
 PROJECT_TARGET_ADD(native-example)
 
        # Define project Targets
-       add_executable(${TARGET_NAME} xxxxxx-native-client.c
+       add_executable(${TARGET_NAME} app/xxxxxx-native-client.c
        )
 
        link_libraries(
index c8d1bbb..fe6debe 100644 (file)
@@ -24,12 +24,12 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/etc/macros.cmake)
 # Add target to project dependency list
 PROJECT_TARGET_ADD(qml-example)
 
-       add_custom_command(OUTPUT xxxxxx-qml-app.qml
+       add_custom_command(OUTPUT app/xxxxxx-qml-app.qml
                COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/xxxxxx-qml-app.qml ${CMAKE_CURRENT_BINARY_DIR}
                )
 
        # Define project Targets
-       add_custom_target(${TARGET_NAME} ALL 
+       add_custom_target(${TARGET_NAME} ALL
                DEPENDS xxxxxx-qml-app.qml
                )
 
index 26a852f..ea06ed0 100644 (file)
@@ -26,7 +26,7 @@ PROJECT_TARGET_ADD(service-example)
 
        # Define project Targets
        add_library(${TARGET_NAME} MODULE
-               xxxxxx-service-binding.c
+               binding/xxxxxx-service-binding.c
        )
 
        # Binder exposes a unique public entry point