samedi 26 septembre 2015

gtest.h file not found googletest xcode 7.0

I'm trying to setup google testing framework for my c++ project following this guide in xcode 7.0 I got to the last step Build and Go but after hours of searching online I can't get my test project to run. The compiler does not seem to find the headers it needs. main.cpp:9:10: 'gtest/gtest.h' file not found. The source is:

#include "gtest/gtest.h"

#include "calc.hpp"

int main(int argc, const char * argv[]) {

    return 0;
}

I also tried #include <gtest/gtest.h> With same result.

Aucun commentaire:

Enregistrer un commentaire