Skip to content

Commit

Permalink
Added missing code & info for Ch7 (Pose Estimation using AAM)
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinemami committed Dec 29, 2012
1 parent c748971 commit 0dd2c80
Show file tree
Hide file tree
Showing 8 changed files with 573 additions and 160 deletions.
53 changes: 40 additions & 13 deletions Chapter7_HeadPoseEstimation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
cmake_minimum_required (VERSION 2.6)

PROJECT(HeadOrientation)

# Requires OpenCV
FIND_PACKAGE( OpenCV REQUIRED )

SET(SRC
main.cpp
)

ADD_EXECUTABLE( ${PROJECT_NAME} ${SRC} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )
cmake_minimum_required (VERSION 2.6)

PROJECT(HeadOrientation)

# Requires OpenCV
FIND_PACKAGE( OpenCV REQUIRED )

SET(SRC
main.cpp
PAW.cpp
Triangle.cpp
09-1m.jpg
09-2m.jpg
09-3m.jpg
simple-aam.txt
)

ADD_EXECUTABLE( ${PROJECT_NAME} ${SRC} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation
COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
"${PROJECT_SOURCE_DIR}/09-1m.jpg" # <--this is in-file
$<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation
COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
"${PROJECT_SOURCE_DIR}/09-2m.jpg" # <--this is in-file
$<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation
COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
"${PROJECT_SOURCE_DIR}/09-3m.jpg" # <--this is in-file
$<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD # Adds a post-build event to HeadOrientation
COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
"${PROJECT_SOURCE_DIR}/simple-aam.txt" # <--this is in-file
$<TARGET_FILE_DIR:${PROJECT_NAME}>) # <--this is out-file path

Loading

0 comments on commit 0dd2c80

Please sign in to comment.