Publishing 2019 R1.1 content and Myriad plugin sources (#162)
[platform/upstream/dldt.git] / inference-engine / tools / vpu / vpu_profile / CMakeLists.txt
1 #
2 # Copyright (C) 2018-2019 Intel Corporation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 set(TARGET_NAME vpu_profile)
18
19 find_package(Threads REQUIRED)
20
21 file(GLOB SOURCES
22     ${CMAKE_SOURCE_DIR}/tools/vpu/common/*.cpp
23     ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
24 )
25
26 add_executable(${TARGET_NAME} ${SOURCES})
27
28 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
29     target_compile_options(${TARGET_NAME} PRIVATE
30         "-Wall"
31     )
32 endif()
33
34 target_include_directories(${TARGET_NAME} SYSTEM PRIVATE
35     "${IE_MAIN_SOURCE_DIR}/include"
36     "${IE_MAIN_SOURCE_DIR}/src/inference_engine"
37     "${IE_MAIN_SOURCE_DIR}/samples/common"
38     "${IE_MAIN_SOURCE_DIR}/samples/common/format_reader"
39     "${CMAKE_SOURCE_DIR}/tools/vpu/common"
40 )
41
42 target_link_libraries(${TARGET_NAME} PRIVATE
43     inference_engine format_reader vpu_graph_transformer
44     ${CMAKE_DL_LIBS}
45     Threads::Threads
46     gflags
47 )
48
49 set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME})
50
51 add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME})
52