GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added missing code & info for Ch7 (Pose Estimation using AAM) · pibbit/code@0dd2c80

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Chapter7_HeadPoseEstimation
    • CMakeLists.txt
    • PAW.cpp
    • PAW.h
    • README.txt
    • Triangle.cpp
    • Triangle.h
    • main.cpp
    • screenshot.png
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Chapter7_HeadPoseEstimation/CMakeLists.txt‎

Copy file name to clipboard
+40-13Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,40 @@
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

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.