file restructures to be mergeable with project-seed

for/release
Denes Matetelki 12 years ago
parent 8b97a72b8c
commit aa812cefda

@ -1,28 +1,7 @@
cmake_minimum_required (VERSION 2.6)
project (PROJECT_GRAPH)
project(graph)
set(CMAKE_CXX_FLAGS " -Wall -Wextra -pedantic -Weffc++ -Wshadow --std=c++0x -ggdb")
set(CMAKE_CXX_COMPILER "/usr/lib/colorgcc/bin/g++")
# set(CMAKE_CXX_COMPILER "/usr/bin/clang")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow -ggdb -std=c++0x")
add_definitions( ${CXX_FLAGS} )
find_package(CxxTest)
if(CXXTEST_FOUND)
include_directories(${CXXTEST_INCLUDE_DIR}
../lib)
enable_testing()
CXXTEST_ADD_TEST(
test_graph
generated_main.cpp
test_graph.hpp
)
endif()
add_subdirectory (test)

@ -0,0 +1,17 @@
find_package(CxxTest)
if(CXXTEST_FOUND)
include_directories(${CXXTEST_INCLUDE_DIR}
../lib)
enable_testing()
CXXTEST_ADD_TEST(test_graph
generated_main.cpp
graph/test_graph.hpp)
endif()
add_custom_target( test
COMMAND ./test_graph
)
Loading…
Cancel
Save