Warning, /multimedia/stopmotion/src/test/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 if(EXISTS "${DL_LIBRARY_PATH}" AND "${Qt5Test_FOUND}") 0002 add_library(oomtestutil 0003 SHARED EXCLUDE_FROM_ALL 0004 oomtestutil.cpp) 0005 target_compile_definitions(oomtestutil 0006 PUBLIC 0007 _GNU_SOURCE) 0008 set_target_properties(oomtestutil 0009 PROPERTIES 0010 POSITION_INDEPENDENT_CODE TRUE) 0011 target_link_libraries(oomtestutil 0012 PUBLIC 0013 ${DL_LIBRARY_PATH}) 0014 0015 add_library(oomteststub 0016 EXCLUDE_FROM_ALL 0017 oomteststub.cpp) 0018 target_compile_definitions(oomteststub 0019 PUBLIC 0020 _GNU_SOURCE) 0021 set_target_properties(oomteststub 0022 PROPERTIES 0023 POSITION_INDEPENDENT_CODE TRUE) 0024 target_link_libraries(oomteststub 0025 PUBLIC 0026 ${DL_LIBRARY_PATH}) 0027 0028 add_executable(test-stopmotion 0029 tmain.cpp 0030 toggvorbis.cpp 0031 texecutor.cpp 0032 tcache.cpp 0033 testundo.cpp 0034 testhome.cpp 0035 fakefiles.cpp 0036 hash.cpp 0037 tworkspace.cpp 0038 tstopmotionundo.cpp 0039 ../domain/undo/filelogger.cpp 0040 ../domain/undo/command.cpp 0041 ../domain/undo/commandlogger.cpp 0042 ../domain/undo/executor.cpp 0043 ../domain/undo/addallcommands.cpp 0044 ../domain/undo/random.cpp 0045 ../domain/undo/commandadd.cpp 0046 ../domain/undo/commandmove.cpp 0047 ../domain/undo/commandremove.cpp 0048 ../domain/undo/commandsetimage.cpp 0049 ../domain/undo/commandaddsound.cpp 0050 ../domain/undo/commandrenamesound.cpp 0051 ../domain/undo/commandremovesound.cpp 0052 ../domain/undo/commandaddscene.cpp 0053 ../domain/undo/commandmovescene.cpp 0054 ../domain/undo/commandremovescene.cpp 0055 ../domain/animation/scene.cpp 0056 ../domain/animation/frame.cpp 0057 ../domain/animation/sound.cpp 0058 ../domain/animation/animation.cpp 0059 ../domain/animation/animationimpl.cpp 0060 ../domain/animation/scenevector.cpp 0061 ../domain/animation/workspacefile.cpp 0062 ../domain/animation/errorhandler.cpp 0063 ../domain/observernotifier.cpp 0064 ../technical/audio/audioformat.cpp 0065 ../technical/util.cpp 0066 ../technical/stringiterator.cpp 0067 ../technical/video/videofactory.cpp 0068 ../technical/video/videoencoder.cpp 0069 ../technical/audio/qtaudiodriver.cpp 0070 ../technical/projectserializer.cpp 0071 ../presentation/frontends/frontend.cpp 0072 ../application/externalcommandwithtemporarydirectory.cpp 0073 ../application/externalcommand.cpp 0074 ../foundation/stringwriter.cpp 0075 ../foundation/uiexception.cpp 0076 ../foundation/logger.cpp 0077 ) 0078 0079 set_target_properties(test-stopmotion 0080 PROPERTIES 0081 EXCLUDE_FROM_ALL true) 0082 0083 # link to Qt libraries 0084 target_link_libraries(test-stopmotion 0085 PUBLIC 0086 Qt5::Core 0087 Qt5::Widgets 0088 Qt5::Multimedia 0089 Qt5::Test 0090 ) 0091 # link to LibXml2 0092 target_link_libraries(test-stopmotion 0093 PUBLIC LibXml2::LibXml2) 0094 # link to libVorbisFile, libtar 0095 target_link_libraries(test-stopmotion 0096 PUBLIC 0097 oomtestutil oomteststub 0098 ${VORBISFILE_LIBRARY_PATH} 0099 ${TAR_LIBRARY_PATH} 0100 ${DL_LIBRARY_PATH} 0101 ) 0102 0103 target_include_directories(test-stopmotion 0104 PUBLIC 0105 ${CMAKE_SOURCE_DIR}) 0106 0107 # add test executable to CTest suite 0108 add_test( 0109 NAME test-stopmotion 0110 COMMAND test-stopmotion) 0111 0112 # link files required for test 0113 file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/resources ${CMAKE_CURRENT_BINARY_DIR}/resources 0114 COPY_ON_ERROR SYMBOLIC) 0115 0116 endif()