|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
set(CMAKE_CXX_COMPILER "/usr/lib/colorgcc/bin/g++")
|
|
|
|
|
|
|
|
|
|
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow "
|
|
|
|
|
"-Wpointer-arith -Wcast-qual "
|
|
|
|
|
"-ggdb -fprofile-arcs -ftest-coverage --std=c++0x " )
|
|
|
|
|
|
|
|
|
|
add_definitions( ${CXX_FLAGS} )
|
|
|
|
@ -18,21 +19,21 @@ if(CXXTEST_FOUND)
|
|
|
|
|
generated_main.cpp
|
|
|
|
|
Fixture.hpp
|
|
|
|
|
|
|
|
|
|
# test_ArgParse.hpp
|
|
|
|
|
# test_Common.hpp
|
|
|
|
|
# test_ConditionalVariable.hpp
|
|
|
|
|
# test_Multiton.hpp
|
|
|
|
|
# test_Mutex.hpp
|
|
|
|
|
test_ArgParse.hpp
|
|
|
|
|
test_Common.hpp
|
|
|
|
|
test_ConditionalVariable.hpp
|
|
|
|
|
test_Multiton.hpp
|
|
|
|
|
test_Mutex.hpp
|
|
|
|
|
test_ObjectPool.hpp
|
|
|
|
|
# test_ScopedLock.hpp
|
|
|
|
|
# test_Semaphore.hpp
|
|
|
|
|
# test_Singleton_DCLP.hpp
|
|
|
|
|
# test_Singleton_call_once.hpp
|
|
|
|
|
# # test_Singleton.hpp Cannot test private member, Ficture.hpp loads it
|
|
|
|
|
# test_Singleton_meyers.hpp
|
|
|
|
|
# test_Thread.hpp
|
|
|
|
|
# test_ThreadPool.hpp
|
|
|
|
|
# # test_Timer.hpp Takes too much time&buggy
|
|
|
|
|
test_ScopedLock.hpp
|
|
|
|
|
test_Semaphore.hpp
|
|
|
|
|
test_Singleton_DCLP.hpp
|
|
|
|
|
test_Singleton_call_once.hpp
|
|
|
|
|
# test_Singleton.hpp Cannot test private member, Ficture.hpp loads it
|
|
|
|
|
test_Singleton_meyers.hpp
|
|
|
|
|
test_Thread.hpp
|
|
|
|
|
test_ThreadPool.hpp
|
|
|
|
|
# test_Timer.hpp Takes too much time&buggy
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(testCppUtils CppUtils gcov)
|
|
|
|
|
endif()
|
|
|
|
|