|
1 | | -cmake_minimum_required (VERSION 2.6) |
2 | | - |
3 | | -PROJECT(HeadOrientation) |
4 | | - |
5 | | -# Requires OpenCV |
6 | | -FIND_PACKAGE( OpenCV REQUIRED ) |
7 | | - |
8 | | -SET(SRC |
9 | | - main.cpp |
10 | | -) |
11 | | - |
12 | | -ADD_EXECUTABLE( ${PROJECT_NAME} ${SRC} ) |
13 | | -TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} ) |
| 1 | +cmake_minimum_required (VERSION 2.6) |
| 2 | + |
| 3 | +PROJECT(HeadOrientation) |
| 4 | + |
| 5 | +# Requires OpenCV |
| 6 | +FIND_PACKAGE( OpenCV REQUIRED ) |
| 7 | + |
| 8 | +SET(SRC |
| 9 | + main.cpp |
| 10 | + PAW.cpp |
| 11 | + Triangle.cpp |
| 12 | + 09-1m.jpg |
| 13 | + 09-2m.jpg |
| 14 | + 09-3m.jpg |
| 15 | + simple-aam.txt |
| 16 | +) |
| 17 | + |
| 18 | +ADD_EXECUTABLE( ${PROJECT_NAME} ${SRC} ) |
| 19 | +TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} ) |
| 20 | + |
| 21 | +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation |
| 22 | + COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..." |
| 23 | + "${PROJECT_SOURCE_DIR}/09-1m.jpg" # <--this is in-file |
| 24 | + $<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path |
| 25 | + |
| 26 | +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation |
| 27 | + COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..." |
| 28 | + "${PROJECT_SOURCE_DIR}/09-2m.jpg" # <--this is in-file |
| 29 | + $<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path |
| 30 | + |
| 31 | +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation |
| 32 | + COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..." |
| 33 | + "${PROJECT_SOURCE_DIR}/09-3m.jpg" # <--this is in-file |
| 34 | + $<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path |
| 35 | + |
| 36 | +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation |
| 37 | + COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..." |
| 38 | + "${PROJECT_SOURCE_DIR}/simple-aam.txt" # <--this is in-file |
| 39 | + $<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path |
| 40 | + |
0 commit comments