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

0001 set( SUTDIR ${CMAKE_CURRENT_SOURCE_DIR}/.. )
0002 
0003 include_directories(
0004     ${CMAKE_CURRENT_BINARY_DIR}/../..
0005     ${SUTDIR}
0006     ${SUTDIR}/..
0007     ${SUTDIR}/../document
0008     ${SUTDIR}/filesystem
0009 )
0010 
0011 ########### io ###############
0012 
0013 add_library(oktetakastenio STATIC)
0014 target_sources(oktetakastenio
0015     PRIVATE
0016         ${SUTDIR}/filesystem/bytearrayrawfileloadthread.cpp
0017         ${SUTDIR}/filesystem/bytearrayrawfilereloadthread.cpp
0018         ${SUTDIR}/filesystem/bytearrayrawfilewritethread.cpp
0019         ${SUTDIR}/filesystem/bytearrayrawfileloadjob.cpp
0020         ${SUTDIR}/filesystem/bytearrayrawfileconnectjob.cpp
0021         ${SUTDIR}/filesystem/bytearrayrawfilewritejob.cpp
0022         ${SUTDIR}/filesystem/bytearrayrawfilereloadjob.cpp
0023         ${SUTDIR}/filesystem/bytearrayrawfilewritetojob.cpp
0024 )
0025 target_link_libraries(oktetakastenio
0026     PUBLIC
0027         KastenCore
0028         OktetaCore
0029     PRIVATE
0030         KF5::I18n
0031         KF5::CoreAddons
0032 )
0033 # Configure export macros to be setup as with a static lib
0034 # as the source files are reused for static oktetakastenio
0035 # Saves doing a separate export header.
0036 target_compile_definitions(oktetakastenio
0037     PUBLIC
0038         OKTETAKASTENCORE_STATICLIB
0039 )
0040 
0041 ########### bytearrayrawfilesynchronizertest ###############
0042 
0043 ecm_add_test(
0044     bytearrayrawfilesynchronizertest.cpp
0045     ${SUTDIR}/../document/bytearraydocument.cpp
0046     ${SUTDIR}/filesystem/bytearrayrawfilesynchronizer.cpp
0047     ${SUTDIR}/filesystem/externalbookmarkstorage.cpp
0048     TEST_NAME bytearrayrawfilesynchronizertest
0049     NAME_PREFIX oktetakasten-io-
0050     LINK_LIBRARIES
0051         oktetakastenio
0052         KastenCore
0053         kastencoretestutil
0054         oktetacoretestutil
0055         KF5::I18n
0056         KF5::Bookmarks
0057         Qt5::Test
0058 )
0059 
0060 ########### bytearrayrawfilesynchronizerfactorytest ###############
0061 
0062 ecm_add_test(
0063     bytearrayrawfilesynchronizerfactorytest.cpp
0064     ${SUTDIR}/../document/bytearraydocument.cpp
0065     ${SUTDIR}/filesystem/externalbookmarkstorage.cpp
0066     ${SUTDIR}/filesystem/bytearrayrawfilesynchronizer.cpp
0067     ${SUTDIR}/filesystem/bytearrayrawfilesynchronizerfactory.cpp
0068     TEST_NAME bytearrayrawfilesynchronizerfactorytest
0069     NAME_PREFIX oktetakasten-io-
0070     LINK_LIBRARIES
0071         oktetakastenio
0072         KastenCore
0073         kastencoretestutil
0074         oktetacoretestutil
0075         KF5::I18n
0076         KF5::Bookmarks
0077         Qt5::Test
0078 )