Warning, /office/calligra/sheets/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
0002 include_directories(
0003     ${CMAKE_SOURCE_DIR}/sheets
0004     ${CMAKE_BINARY_DIR}/sheets
0005     ${EIGEN3_INCLUDE_DIR}
0006     ${KOMAIN_INCLUDES}
0007 )
0008 
0009 # call: sheets_add_unit_test(<test-name> <sources> LINK_LIBRARIES <library> [<library> [...]] [GUI])
0010 macro(SHEETS_ADD_UNIT_TEST _TEST_NAME)
0011     ecm_add_test( ${ARGN}
0012         TEST_NAME "${_TEST_NAME}"
0013         NAME_PREFIX "sheets-"
0014     )
0015 endmacro()
0016 
0017 ########### Core Functionality ###############
0018 
0019 sheets_add_unit_test(Cell
0020     TestCell.cpp
0021     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0022 )
0023 
0024 ########### next target ###############
0025 
0026 sheets_add_unit_test(CellStorage
0027     TestCellStorage.cpp
0028     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0029 )
0030 
0031 ########### next target ###############
0032 
0033 sheets_add_unit_test(Dependencies
0034     TestDependencies.cpp
0035     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0036 )
0037 
0038 ########### next target ###############
0039 
0040 sheets_add_unit_test(Formula
0041     TestFormula.cpp
0042     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0043 )
0044 
0045 ########### next target ###############
0046 
0047 sheets_add_unit_test(Util
0048     TestUtil.cpp
0049     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0050 )
0051 
0052 ########### next target ###############
0053 
0054 sheets_add_unit_test(OpenFormula
0055     TestOpenFormula.cpp
0056     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0057 )
0058 
0059 ########### next target ###############
0060 
0061 sheets_add_unit_test(PointStorage
0062     TestPointStorage.cpp
0063     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0064 )
0065 
0066 ########### next target ###############
0067 
0068 sheets_add_unit_test(Region
0069     TestRegion.cpp
0070     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0071 )
0072 
0073 ########### next target ###############
0074 
0075 sheets_add_unit_test(RTree
0076     TestRTree.cpp
0077     LINK_LIBRARIES calligrasheetscommon KF5::KDELibs4Support Qt5::Test
0078 )
0079 
0080 ########### next target ###############
0081 
0082 sheets_add_unit_test(Sort
0083     TestSort.cpp
0084     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0085 )
0086 
0087 ########### next target ###############
0088 
0089 sheets_add_unit_test(Selection
0090     TestSelection.cpp
0091     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0092 )
0093 
0094 ########### next target ###############
0095 
0096 sheets_add_unit_test(Value
0097     TestValue.cpp
0098     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0099 )
0100 
0101 ########### next target ###############
0102 
0103 sheets_add_unit_test(StyleStorage
0104     TestStyleStorage.cpp
0105     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0106 )
0107 
0108 
0109 ########### Function tests ###############
0110 
0111 sheets_add_unit_test(BitopsFunctions
0112     TestBitopsFunctions.cpp
0113     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0114 )
0115 
0116 ########### next target ###############
0117 
0118 sheets_add_unit_test(DatabaseFunctions
0119     TestDatabaseFunctions.cpp
0120     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0121 )
0122 
0123 ########### target TestDatetimeFunctions ###############
0124 
0125 sheets_add_unit_test(DatetimeFunctions
0126     TestDatetimeFunctions.cpp
0127     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0128 )
0129 
0130 ########### next target ###############
0131 
0132 sheets_add_unit_test(EngineeringFunctions
0133     TestEngineeringFunctions.cpp
0134     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0135 )
0136 
0137 ########### next target ###############
0138 
0139 sheets_add_unit_test(FinancialFunctions
0140     TestFinancialFunctions.cpp
0141     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0142 )
0143 
0144 ########### next target ###############
0145 
0146 sheets_add_unit_test(InformationFunctions
0147     TestInformationFunctions.cpp
0148     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0149 )
0150 
0151 ########### next target ###############
0152 
0153 sheets_add_unit_test(LogicFunctions
0154     TestLogicFunctions.cpp
0155     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0156 )
0157 
0158 ########### next target ###############
0159 
0160 sheets_add_unit_test(MathFunctions
0161     TestMathFunctions.cpp
0162     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0163 )
0164 
0165 ########### next target ###############
0166 
0167 sheets_add_unit_test(StatisticalFunctions
0168     TestStatisticalFunctions.cpp
0169     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0170 )
0171 
0172 ########### next target ###############
0173 
0174 sheets_add_unit_test(TextFunctions
0175     TestTextFunctions.cpp
0176     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0177 )
0178 
0179 ########### next target ###############
0180 
0181 sheets_add_unit_test(TrigFunctions
0182     TestTrigFunctions.cpp
0183     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0184 )
0185 
0186 # the next tests had this line:
0187 # set_target_properties(TestValueFormatter PROPERTIES COMPILE_FLAGS "-DCALLIGRA_SHEETS_UNIT_TEST")
0188 # but ecm_add_test has no official support for injecting properties or getting the target (ECM v5.17)
0189 # For now just set and unset globally:
0190 add_definitions("-DCALLIGRA_SHEETS_UNIT_TEST")
0191 
0192 ########### next target ###############
0193 
0194 sheets_add_unit_test(ValueFormatter
0195     TestValueFormatter.cpp
0196     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0197 )
0198 
0199 ########### next target ###############
0200 
0201 sheets_add_unit_test(ValueConverter
0202     TestValueConverter.cpp
0203     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0204 )
0205 
0206 ########### next target ###############
0207 
0208 sheets_add_unit_test(ValueParser
0209     TestValueParser.cpp
0210     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0211 )
0212 
0213 ########### next target ###############
0214 
0215 sheets_add_unit_test(Sheet
0216     TestSheet.cpp
0217     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0218 )
0219 
0220 # see comment at respective add_definitions(...)
0221 remove_definitions("-DCALLIGRA_SHEETS_UNIT_TEST")
0222 
0223 ########### next target ###############
0224 
0225 set(TestGraphicsView_SRCS TestGraphicsView.cpp)
0226 add_executable(TestGraphicsView ${TestGraphicsView_SRCS})
0227 ecm_mark_as_test(TestGraphicsView)
0228 target_link_libraries(TestGraphicsView calligrasheetscommon)
0229 
0230 ########### next target ###############
0231 
0232 sheets_add_unit_test(RowRepeatStorage
0233     TestRowRepeatStorage.cpp
0234     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0235 )
0236 
0237 ########### next target ###############
0238 
0239 sheets_add_unit_test(RowFormatStorage
0240     TestRowFormatStorage.cpp
0241     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0242 )
0243 
0244 ########### next target ###############
0245 
0246 sheets_add_unit_test(DatabaseFilter
0247     TestDatabaseFilter.cpp
0248     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0249 )
0250 
0251 ########### next target ###############
0252 
0253 sheets_add_unit_test(PasteCommand
0254     TestPasteCommand.cpp
0255     LINK_LIBRARIES calligrasheetscommon Qt5::Test
0256 )
0257 
0258 ########### Benchmarks ###############
0259 
0260 # set(BenchmarkCluster_SRCS BenchmarkCluster.cpp ../Cluster.cpp) # explicit Cluster.cpp for no extra symbol visibility
0261 # add_executable(BenchmarkCluster ${BenchmarkCluster_SRCS})
0262 # ecm_mark_as_test(BenchmarkCluster)
0263 # target_link_libraries(BenchmarkCluster calligrasheetscommon Qt5::Test)
0264 
0265 ########### next target ###############
0266 
0267 set(BenchmarkPointStorage_SRCS BenchmarkPointStorage.cpp)
0268 add_executable(BenchmarkPointStorage ${BenchmarkPointStorage_SRCS})
0269 ecm_mark_as_test(BenchmarkPointStorage)
0270 target_link_libraries(BenchmarkPointStorage Qt5::Test KF5::KDELibs4Support)
0271 
0272 ########### next target ###############
0273 
0274 set(BenchmarkRTree_SRCS BenchmarkRTree.cpp)
0275 add_executable(BenchmarkRTree ${BenchmarkRTree_SRCS})
0276 ecm_mark_as_test(BenchmarkRTree)
0277 target_link_libraries(BenchmarkRTree KF5::KDELibs4Support Qt5::Test)