Mercurial > dedupe
comparison CMakeLists.txt @ 73:c9447697609f
Fixed some issues with raise.
100% function code coverage for Exceptions.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 31 Jan 2013 20:33:01 +0100 |
| parents | b4185273c14a |
| children | 8136057988bc |
comparison
equal
deleted
inserted
replaced
| 72:b4185273c14a | 73:c9447697609f |
|---|---|
| 8 IF(COVERAGE) | 8 IF(COVERAGE) |
| 9 SET(COVERAGE_FLAGS "--coverage") | 9 SET(COVERAGE_FLAGS "--coverage") |
| 10 ENDIF() | 10 ENDIF() |
| 11 | 11 |
| 12 MACRO(NEW_TEST file) | 12 MACRO(NEW_TEST file) |
| 13 ADD_EXECUTABLE(${file} ${file}.cpp ${TEST_SOURCES}) | 13 STRING(REPLACE "/" "_" TARGET ${file}) |
| 14 ADD_TEST(${file} ${file}) | 14 ADD_EXECUTABLE(${TARGET} ${file}.cpp ${TEST_SOURCES}) |
| 15 TARGET_LINK_LIBRARIES(${file} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${COVERAGE_FLAGS}) | 15 ADD_TEST(${TARGET} ${TARGET}) |
| 16 TARGET_LINK_LIBRARIES(${TARGET} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${COVERAGE_FLAGS}) | |
| 16 ENDMACRO() | 17 ENDMACRO() |
| 17 | 18 |
| 18 SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake_Modules/") | 19 SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake_Modules/") |
| 19 | 20 |
| 20 SET(USE_HEADERS_FOR_BOOST_TEST OFF) | 21 SET(USE_HEADERS_FOR_BOOST_TEST OFF) |
| 50 BitDecoder.cpp | 51 BitDecoder.cpp |
| 51 ConfigurationProcessing.cpp | 52 ConfigurationProcessing.cpp |
| 52 DataController.cpp | 53 DataController.cpp |
| 53 EditDistance.cpp | 54 EditDistance.cpp |
| 54 Exception/IOException.cpp | 55 Exception/IOException.cpp |
| 56 Exception/NoSuchValueException.cpp | |
| 57 Exception/ValueExistsException.cpp | |
| 58 Exception/InvalidDataException.cpp | |
| 55 Exception/SQLException.cpp | 59 Exception/SQLException.cpp |
| 60 Exception/PermissionException.cpp | |
| 56 FastBitDecoder.cpp | 61 FastBitDecoder.cpp |
| 57 FileDBLink.cpp | 62 FileDBLink.cpp |
| 58 HuffmanSet.cpp | 63 HuffmanSet.cpp |
| 59 HuffmanString.cpp | 64 HuffmanString.cpp |
| 60 MemoryDBLink.cpp | 65 MemoryDBLink.cpp |
| 136 ${SQLITE3_LIBRARIES} | 141 ${SQLITE3_LIBRARIES} |
| 137 ${Boost_LIBRARIES} | 142 ${Boost_LIBRARIES} |
| 138 ) | 143 ) |
| 139 | 144 |
| 140 ENABLE_TESTING() | 145 ENABLE_TESTING() |
| 146 NEW_TEST(Exception/TestIOException) | |
| 147 NEW_TEST(Exception/TestInvalidDataException) | |
| 148 NEW_TEST(Exception/TestSQLException) | |
| 149 NEW_TEST(Exception/TestNoSuchValueException) | |
| 150 NEW_TEST(Exception/TestValueExistsException) | |
| 151 NEW_TEST(Exception/TestPermissionException) | |
| 141 NEW_TEST(TestBitArray) | 152 NEW_TEST(TestBitArray) |
| 142 NEW_TEST(TestBitDecoder) | 153 NEW_TEST(TestBitDecoder) |
| 143 NEW_TEST(TestDBCache) | 154 NEW_TEST(TestDBCache) |
| 144 NEW_TEST(TestEditDistance) | 155 NEW_TEST(TestEditDistance) |
| 145 NEW_TEST(TestFastBitDecoder) | 156 NEW_TEST(TestFastBitDecoder) |
| 146 NEW_TEST(TestHuffmanString) | 157 NEW_TEST(TestHuffmanString) |
| 147 NEW_TEST(TestRBTree) | 158 NEW_TEST(TestRBTree) |
| 159 NEW_TEST(TestMemoryDBLink) | |
| 148 NEW_TEST(TestSqliteDBLink) | 160 NEW_TEST(TestSqliteDBLink) |
| 149 | 161 |
| 150 #ADD_PRECOMPILED_HEADER(TestEditDistance TestFramework.hpp) | 162 #ADD_PRECOMPILED_HEADER(TestEditDistance TestFramework.hpp) |
| 151 | 163 |
| 152 | 164 |
