Warning, /utilities/okteta/core/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(
0002   ${CMAKE_CURRENT_BINARY_DIR}/.. # for oktetacore_export.hpp
0003   ${CMAKE_CURRENT_SOURCE_DIR}/.. # okteta core includes
0004 )
0005 
0006 # Configure export macros to be setup as with a static lib
0007 # as the source files are reused for the tests.
0008 # Saves doing a separate export header.
0009 add_definitions(
0010   -DOKTETACORE_STATIC_DEFINE
0011 )
0012 
0013 # helper
0014 set( oktetacoretestutil_LIB_SRCS
0015   util/fill.cpp
0016 )
0017 
0018 add_library( oktetacoretestutil  STATIC ${oktetacoretestutil_LIB_SRCS} )
0019 target_link_libraries( oktetacoretestutil
0020   PUBLIC
0021     Qt5::Core
0022 )
0023 
0024 ecm_add_test(
0025   arraychangemetricstest.cpp
0026 #  ${CMAKE_CURRENT_SOURCE_DIR}/../arraychangemetrics.cpp
0027   TEST_NAME arraychangemetricstest
0028   NAME_PREFIX libokteta-core-
0029   LINK_LIBRARIES Qt5::Test
0030 )
0031 
0032 
0033 ecm_add_test(
0034   addressrangetest.cpp
0035   TEST_NAME addressrangetest
0036   NAME_PREFIX libokteta-core-
0037   LINK_LIBRARIES testoktetacore Qt5::Test
0038 )
0039 
0040 
0041 ecm_add_test(
0042   addressrangelisttest.cpp
0043   TEST_NAME addressrangelisttest
0044   NAME_PREFIX libokteta-core-
0045   LINK_LIBRARIES testoktetacore Qt5::Test
0046 )
0047 
0048 
0049 ecm_add_test(
0050   fixedsizebytearraymodeltest.cpp
0051   TEST_NAME fixedsizebytearraymodeltest
0052   NAME_PREFIX libokteta-core-
0053   LINK_LIBRARIES testoktetacore Qt5::Test KF5::I18n
0054 )
0055 
0056 
0057 ecm_add_test(
0058   abstractbytearraymodeliftest.cpp
0059   fixedsizebytearraymodelabstractbytearraymodeliftest.cpp
0060   TEST_NAME fixedsizebytearraymodelabstractbytearraymodeliftest
0061   NAME_PREFIX libokteta-core-
0062   LINK_LIBRARIES oktetacoretestutil testoktetacore Qt5::Test KF5::I18n
0063 )
0064 
0065 
0066 ecm_add_test(
0067   bytearraymodeltest.cpp
0068   TEST_NAME bytearraymodeltest
0069   NAME_PREFIX libokteta-core-
0070   LINK_LIBRARIES OktetaCore Qt5::Test
0071 )
0072 
0073 
0074 ecm_add_test(
0075   abstractbytearraymodeliftest.cpp
0076   bytearraymodelabstractbytearraymodeliftest.cpp
0077   TEST_NAME bytearraymodelabstractbytearraymodeliftest
0078   NAME_PREFIX libokteta-core-
0079   LINK_LIBRARIES oktetacoretestutil testoktetacore Qt5::Test KF5::I18n
0080 )
0081 
0082 
0083 ecm_add_test(
0084   abstractbytearraymodeliftest.cpp
0085   piecetablebytearraymodelabstractbytearraymodeliftest.cpp
0086   TEST_NAME piecetablebytearraymodelabstractbytearraymodeliftest
0087   NAME_PREFIX libokteta-core-
0088   LINK_LIBRARIES oktetacoretestutil testoktetacore Qt5::Test KF5::I18n
0089 )
0090 
0091 
0092 ecm_add_test(
0093   versionableiftest.cpp
0094   piecetablebytearraymodelversionableiftest.cpp
0095   TEST_NAME piecetablebytearraymodelversionableiftest
0096   NAME_PREFIX libokteta-core-
0097   LINK_LIBRARIES oktetacoretestutil OktetaCore Qt5::Test
0098 )
0099 
0100 
0101 ecm_add_test(
0102   valuecodectest.cpp
0103   TEST_NAME valuecodectest
0104   NAME_PREFIX libokteta-core-
0105   LINK_LIBRARIES OktetaCore Qt5::Test
0106 )
0107 
0108 
0109 ecm_add_test(
0110   charcodectest.cpp
0111   TEST_NAME charcodectest
0112   NAME_PREFIX libokteta-core-
0113   LINK_LIBRARIES OktetaCore Qt5::Test KF5::I18n
0114 )
0115 
0116 
0117 ecm_add_test(
0118   textcharcodectest.cpp
0119   TEST_NAME textcharcodectest
0120   NAME_PREFIX libokteta-core-
0121   LINK_LIBRARIES testoktetacore Qt5::Test KF5::I18n KF5::Codecs
0122 )
0123 
0124 
0125 ecm_add_test(
0126   charcodeciftest.cpp
0127   textcharcodeccharcodeciftest.cpp
0128   TEST_NAME textcharcodeccharcodeciftest
0129   NAME_PREFIX libokteta-core-
0130   LINK_LIBRARIES testoktetacore Qt5::Test KF5::I18n KF5::Codecs
0131 )
0132 
0133 
0134 ecm_add_test(
0135   charcodeciftest.cpp ebcdic1047charcodeccharcodeciftest.cpp
0136   TEST_NAME ebcdic1047charcodeccharcodeciftest
0137   NAME_PREFIX libokteta-core-
0138   LINK_LIBRARIES testoktetacore Qt5::Test
0139 )
0140 
0141 
0142 ecm_add_test(
0143   bookmarktest.cpp
0144   TEST_NAME bookmarktest
0145   NAME_PREFIX libokteta-core-
0146   LINK_LIBRARIES Qt5::Test
0147 )
0148 
0149 
0150 ecm_add_test(
0151   bookmarklisttest.cpp
0152   TEST_NAME bookmarklisttest
0153   NAME_PREFIX libokteta-core-
0154   LINK_LIBRARIES testoktetacore Qt5::Test KF5::I18n
0155 )
0156 
0157