tested with: OF0.9.7
screen cast: https://vimeo.com/202735241
- clone googletest from https://github.com/google/googletest
- build static library
- change LLVM settings on Build Setting for supporting C++11
- archive it
- copy the static library to
/usr/local/lib
-
add new target as
Command Line Tool
-
add
Run Script
to Build Phase
cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib "$TARGET_BUILD_DIR/libfmodex.dylib";
install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME";
-
add the path to include folder of the googletest to your header search path e.g.
$(PROJECT_DIR)/../googletest/googletest/include
-
add openframeworks static library to your Build Phases > Link Binary with Libraries
-
add testcode