Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20)

project(ITLabAI)

set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)

option(ENABLE_STATISTIC_TENSORS "Enable statistic tensors" OFF)

if(ENABLE_STATISTIC_TENSORS)
Expand Down
10 changes: 0 additions & 10 deletions app/Graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,12 @@ target_link_libraries(Graph_Build BuildGraph)
add_executable(ACC acc_check.cpp)
target_link_libraries(ACC BuildGraph)

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()

if (WIN32)
add_custom_command(TARGET Graph_Build POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${OPENCV_BUILD_DIR}/bin/."
"${CMAKE_BINARY_DIR}/bin/")

if ("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG")
set(CMAKE_BUILD_TYPE "Debug")
endif()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE")
set(CMAKE_BUILD_TYPE "Release")
endif()
add_custom_command(TARGET ACC POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${OPENCV_BUILD_DIR}/bin/."
Expand Down
4 changes: 0 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ target_link_libraries(run_test PUBLIC graphT_lib)
target_include_directories(run_test PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(run_test PRIVATE "${CMAKE_SOURCE_DIR}/app/ReaderImage")

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()

if (WIN32)
add_custom_command(TARGET run_test POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
Expand Down
Loading