Writing a Makefile.am to invoke googletest unit tests
Posted
by jmglov
on Stack Overflow
See other posts from Stack Overflow
or by jmglov
Published on 2010-03-17T11:45:37Z
Indexed on
2010/03/17
15:41 UTC
Read the original article
Hit count: 561
I am trying to add my first unit test to an existing Open Source project. Specifically, I added a new class, called audio_manager:
src/audio/audio_manager.h
src/audio/audio_manager.cc
I created a src/test directory structure that mirrors the structure of the implementation files, and wrote my googletest unit tests:
src/test/audio/audio_manager.cc
Now, I am trying to set up my Makefile.am to compile and run the unit test:
src/test/audio/Makefile.am
I copied Makefile.am from:
src/audio/Makefile.am
Does anyone have a simple recipe for me, or is it to the cryptic automake documentation for me? :)
© Stack Overflow or respective owner