tests: fix Tizen build
authorInki Dae <inki.dae@samsung.com>
Tue, 26 Nov 2019 08:40:29 +0000 (17:40 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Mar 2021 05:19:31 +0000 (14:19 +0900)
This patch moves install directory of examples
to prevent gbs build from failed.

Change-Id: Ib5ef3d8025c0b4375c21df81b7434c405b07c6e1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
tests/CMakeLists.txt

index edea34d..316a58e 100644 (file)
@@ -1,6 +1,8 @@
 # UnitTests
 include(CheckIncludeFiles)
 
+include_directories("${THIRD_PARTY_INCLUDE_DIRS}")
+
 # Setup the inference test framework
 set(inference_test_sources
     ClassifierTestCaseData.hpp
@@ -27,6 +29,9 @@ if(BUILD_CAFFE_PARSER)
         target_link_libraries(${testName} armnnCaffeParser)
         target_link_libraries(${testName} armnn)
         target_link_libraries(${testName} ${CMAKE_THREAD_LIBS_INIT})
+           set_target_properties(${testName} PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
         addDllCopyCommands(${testName})
     endmacro()
 
@@ -90,6 +95,9 @@ if(BUILD_TF_PARSER)
         target_link_libraries(${testName} armnnTfParser)
         target_link_libraries(${testName} armnn)
         target_link_libraries(${testName} ${CMAKE_THREAD_LIBS_INIT})
+           set_target_properties(${testName} PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
         addDllCopyCommands(${testName})
     endmacro()
 
@@ -271,8 +279,11 @@ if (BUILD_ARMNN_SERIALIZER OR BUILD_CAFFE_PARSER OR BUILD_TF_PARSER OR BUILD_TF_
     endif()
     target_link_libraries(ExecuteNetwork armnn)
 
-   target_link_libraries(ExecuteNetwork ${CMAKE_THREAD_LIBS_INIT})
-   addDllCopyCommands(ExecuteNetwork)
+    target_link_libraries(ExecuteNetwork ${CMAKE_THREAD_LIBS_INIT})
+    addDllCopyCommands(ExecuteNetwork)
+    set_target_properties(ExecuteNetwork PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
 endif()
 
 if(BUILD_ACCURACY_TOOL)