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>
Mon, 29 Jun 2020 07:08:07 +0000 (16:08 +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 145af12..3835b42 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
@@ -31,6 +33,9 @@ if(BUILD_CAFFE_PARSER)
             ${Boost_SYSTEM_LIBRARY}
             ${Boost_FILESYSTEM_LIBRARY}
             ${Boost_PROGRAM_OPTIONS_LIBRARY})
+       set_target_properties(${testName} PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
         addDllCopyCommands(${testName})
     endmacro()
 
@@ -98,6 +103,9 @@ if(BUILD_TF_PARSER)
             ${Boost_SYSTEM_LIBRARY}
             ${Boost_FILESYSTEM_LIBRARY}
             ${Boost_PROGRAM_OPTIONS_LIBRARY})
+       set_target_properties(${testName} PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
         addDllCopyCommands(${testName})
     endmacro()
 
@@ -282,6 +290,9 @@ if (BUILD_ARMNN_SERIALIZER OR BUILD_CAFFE_PARSER OR BUILD_TF_PARSER OR BUILD_TF_
         ${Boost_SYSTEM_LIBRARY}
         ${Boost_FILESYSTEM_LIBRARY}
         ${Boost_PROGRAM_OPTIONS_LIBRARY})
+    set_target_properties(ExecuteNetwork PROPERTIES
+                       RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin
+                       RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin)
     addDllCopyCommands(ExecuteNetwork)
 endif()