Skip to content

Instantly share code, notes, and snippets.

@rpherrera
Created January 20, 2015 16:53
Show Gist options
  • Save rpherrera/4d461290ba50b35d3d9f to your computer and use it in GitHub Desktop.
Save rpherrera/4d461290ba50b35d3d9f to your computer and use it in GitHub Desktop.
All OpenCV 2.4.10 Flags and Format for CMake
##########################
### ONLY 'OCV_OPTION's ###
##########################
# Getting OpenCV Flags
curl https://raw.githubusercontent.com/Itseez/opencv/2.4.10/CMakeLists.txt | grep -i OCV_OPTION | cut -d'(' -f2 | awk '{print $1}'
# Getting OpenCV Flags and Formatting for CMake
curl https://raw.githubusercontent.com/Itseez/opencv/2.4.10/CMakeLists.txt | grep -i OCV_OPTION | cut -d'(' -f2 | awk '{print $1}' | xargs -I XXX echo "-D XXX=OFF \\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment