set(MSVC64 1)
endif()
-if(NOT APPLE)
- if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
- set(CMAKE_COMPILER_IS_GNUCXX 1)
- set(CMAKE_COMPILER_IS_CLANGCXX 1)
- set(ENABLE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE)
- endif()
- if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
- set(CMAKE_COMPILER_IS_GNUCC 1)
- set(CMAKE_COMPILER_IS_CLANGCC 1)
- set(ENABLE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE)
- endif()
+if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ set(CMAKE_COMPILER_IS_GNUCXX 1)
+ set(CMAKE_COMPILER_IS_CLANGCXX 1)
+endif()
+if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ set(CMAKE_COMPILER_IS_GNUCC 1)
+ set(CMAKE_COMPILER_IS_CLANGCC 1)
+endif()
+
+if((CMAKE_COMPILER_IS_CLANGCXX OR CMAKE_COMPILER_IS_CLANGCC) AND NOT CMAKE_GENERATOR MATCHES "Xcode")
+ set(ENABLE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE)
endif()
# ----------------------------------------------------------------------------
{
cout << "In capture ..." << endl;
cout << endl << "NOTE: Smile intensity will only be valid after a first smile has been detected" << endl;
-
+
for(;;)
{
IplImage* iplImg = cvQueryFrame( capture );
// The number of detected neighbors depends on image size (and also illumination, etc.). The
// following steps use a floating minimum and maximum of neighbors. Intensity thus estimated will be
- //accurate only after a first smile has been displayed by the user.
- const int smile_neighbors = nestedObjects.size();
+ //accurate only after a first smile has been displayed by the user.
+ const int smile_neighbors = (int)nestedObjects.size();
static int max_neighbors=-1;
static int min_neighbors=-1;
if (min_neighbors == -1) min_neighbors = smile_neighbors;