Revision 1568

trunk/tests/openmp/main.cpp (revision 1568)
1
#include <gtest/gtest.h>
2

  
3
int main(int argc, char** argv)
4
{
5
  ::testing::InitGoogleTest(&argc, argv);
6
  return RUN_ALL_TESTS();
7
}
trunk/tests/openmp/test_omp.cpp (revision 1568)
1
#include <gtest/gtest.h>
2

  
3
#ifdef _OPENMP
4
#include <omp.h>
5
#endif
6

  
7
class test_omp: public ::testing::Test {};
8

  
9
TEST_F(test_omp, example)
10
{
11
}
trunk/tests/openmp/Makefile (revision 1568)
1
GTEST_DIR=googletest-read-only
2

  
3
OPENMP_FLAG=-fopenmp
4

  
5
GTESTS=\
6
 test_omp.cpp\
7
 main.cpp
8

  
9
all: clean gtest-all
10
	./gtest-all
11

  
12
test_omp.obj: test_omp.cpp
13
	CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -c -r -g $^
14

  
15
gtest-all: gtest-all.obj $(GTESTS)
16
	CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -g -r $^
17

  
18
gtest-all.obj: googletest-read-only
19
	$(CXX) -c -g $(OPENMP_FLAG) -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $(GTEST_DIR)/src/gtest-all.cc
20

  
21
googletest-read-only:
22
	svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-read-only
23

  
24
clean:
25
	@rm -vf *.obj

Also available in: Unified diff