-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
27 lines (22 loc) · 893 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 2.8)
project( visualizeDnnBlobsOCV )
find_package( OpenCV )
include_directories( ${OpenCV_INCLUDE_DIRS} )
link_directories( ${OpenCV_INCLUDE_DIRS} )
SET(CMAKE_CXX_FLAGS "-std=c++11")
add_executable( visualizeDnnBlobsOCV
src/main.cpp )
target_link_libraries( visualizeDnnBlobsOCV
${OpenCV_LIBS} )
#You may need to change the change the "${OpenCV_DIR}/bin/Debug/" to your installation path
add_custom_command(TARGET visualizeDnnBlobsOCV POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
D:/opencv/build/bin/Debug
"$<TARGET_FILE_DIR:visualizeDnnBlobsOCV>"
)
#You may need to change the change the "${OpenCV_DIR}/bin/Release/" to your installation path
add_custom_command(TARGET visualizeDnnBlobsOCV POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
D:/opencv/build/bin/Release
"$<TARGET_FILE_DIR:visualizeDnnBlobsOCV>"
)