SET(f)
ENDIF(f STREQUAL v)
ENDFOREACH(v ${vars})
+ string(REGEX MATCH "^-I" test_include ${f})
+ if(test_include)
+ string(REGEX REPLACE "^-I" "" include_dir ${f})
+ if(include_dir)
+ if(include_dir STREQUAL /usr/include)
+ else(include_dir STREQUAL /usr/include)
+ string(REGEX MATCH "^\\." test_dot ${include_dir})
+ if(test_dot)
+ set(include_dir ${CMAKE_CURRENT_BINARY_DIR}/${include_dir})
+ endif(test_dot)
+ include_directories(${include_dir})
+ endif(include_dir STREQUAL /usr/include)
+ endif(include_dir)
+ else(test_include)
SET(flags "${flags} ${f}")
+ endif(test_include)
ENDFOREACH(f ${var})
SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
''')