Warning, /rolisteam/rolisteam/src/tests/auto/data/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 0003 enable_testing(true) 0004 include_directories( test ) 0005 0006 set(CMAKE_AUTOMOC ON) 0007 0008 set(QT_REQUIRED_VERSION "6.3.0") 0009 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test Core) 0010 0011 0012 # test player 0013 add_executable(tst_player tst_dataplayertest.cpp) 0014 target_link_libraries(tst_player PUBLIC Qt6::Core Qt6::Test PRIVATE core core rwidgets instantmessaging common_core common_widget common_qml network helper) 0015 target_include_directories(tst_player PUBLIC ../helper) 0016 add_test(NAME tst_player COMMAND tst_player) 0017 0018 # test chapter 0019 #add_executable(tst_chapter tst_chaptertest.cpp) 0020 #target_link_libraries(tst_chapter PUBLIC Qt6::Core Qt6::Test PRIVATE core helper) 0021 #target_include_directories(tst_chapter PUBLIC ../helper) 0022 #add_test(NAME tst_chapter COMMAND tst_chapter) 0023 0024 # test character 0025 add_executable(tst_character tst_datacharactertest.cpp ../assets/resources.qrc) 0026 target_link_libraries(tst_character 0027 PUBLIC 0028 Qt6::Core 0029 Qt6::Test 0030 PRIVATE 0031 core 0032 rwidgets 0033 instantmessaging 0034 common_core 0035 common_widget 0036 common_qml 0037 network 0038 helper 0039 charactersheet 0040 charactersheet_formula) 0041 0042 target_include_directories(tst_character PUBLIC ../helper) 0043 add_test(NAME tst_character COMMAND tst_character) 0044 0045 # test cleveruri 0046 add_executable(tst_cleveruri tst_datacleveruritest.cpp ../assets/resources.qrc) 0047 target_link_libraries(tst_cleveruri PUBLIC Qt6::Core Qt6::Test PRIVATE core core rwidgets instantmessaging common_core common_widget common_qml network helper) 0048 target_include_directories(tst_cleveruri PUBLIC ../helper) 0049 add_test(NAME tst_cleveruri COMMAND tst_cleveruri) 0050 0051 0052 # test diceshortcut 0053 add_executable(tst_diceshortcut tst_diceshortcut.cpp) 0054 target_link_libraries(tst_diceshortcut PUBLIC Qt6::Core Qt6::Test PRIVATE core helper) 0055 target_include_directories(tst_diceshortcut PUBLIC ../helper) 0056 add_test(NAME tst_diceshortcut COMMAND tst_diceshortcut) 0057 0058 # test resource node 0059 add_executable(tst_resourcenode tst_resourcenode.cpp) 0060 target_link_libraries(tst_resourcenode PUBLIC Qt6::Core Qt6::Test PRIVATE core helper) 0061 target_include_directories(tst_resourcenode PUBLIC ../helper) 0062 add_test(NAME tst_resourcenode COMMAND tst_resourcenode) 0063 0064 0065 # test resource node 0066 add_executable(tst_rolisteammimedata tst_rolisteammimedata.cpp) 0067 target_link_libraries(tst_rolisteammimedata PUBLIC Qt6::Core Qt6::Test PRIVATE core helper) 0068 target_include_directories(tst_rolisteammimedata PUBLIC ../helper) 0069 add_test(NAME tst_rolisteammimedata COMMAND tst_rolisteammimedata) 0070