Warning, /rolisteam/rolisteam/src/libraries/instantmessaging/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(InstantMessaging VERSION 1.0.0 DESCRIPTION "Instant messaging code")
0004 
0005 
0006 set(CMAKE_AUTOMOC ON)
0007 set(CMAKE_AUTOUIC ON)
0008 set(CMAKE_AUTORCC ON)
0009 
0010 set(CMAKE_CXX_STANDARD 17)
0011 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0012 
0013 # Add a compiler flag
0014 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
0015 
0016 find_package(Qt6 COMPONENTS Core Widgets Network Qml Quick Concurrent REQUIRED)
0017 
0018 
0019 #chatroomfactory.cpp
0020 #chatroom.cpp
0021 #filterinstantmessagingmodel.cpp
0022 #messagemodel.cpp
0023 #chatroomsplittermodel.cpp
0024 #filteredplayermodel.cpp
0025 #instantmessagingmodel.cpp
0026 
0027 set(im_sources
0028   src/messagefactory.cpp
0029   src/commandmessage.cpp
0030   src/errormessage.cpp
0031   src/dicemessage.cpp
0032   src/textwritercontroller.cpp
0033   src/messageinterface.cpp
0034   src/textmessage.cpp)
0035 
0036 #chatroomfactory.h
0037 #filterinstantmessagingmodel.h
0038 #messagemodel.h
0039 #chatroom.h
0040 #chatroomsplittermodel.h
0041 #filteredplayermodel.h
0042 #instantmessagingmodel.h
0043 
0044 set(hdir "include/instantmessaging")
0045 set(im_headers
0046     ${hdir}/im_global.h
0047     ${hdir}/messagefactory.h
0048     ${hdir}/commandmessage.h
0049     ${hdir}/errormessage.h
0050     ${hdir}/dicemessage.h
0051     ${hdir}/textwritercontroller.h
0052     ${hdir}/messageinterface.h
0053     ${hdir}/textmessage.h)
0054 
0055 
0056 
0057 add_library(instantmessaging SHARED ${im_headers} ${im_sources})
0058 target_link_libraries(instantmessaging PUBLIC Qt6::Core Qt6::Network Qt6::Qml Qt6::Quick Qt6::Concurrent PRIVATE common_core diceparser_shared diceparser_qobject utils)
0059 set_target_properties(instantmessaging PROPERTIES PUBLIC_HEADER "${im_headers}")
0060 target_compile_definitions(instantmessaging PRIVATE IM_LIBRARY)
0061 
0062 target_include_directories(instantmessaging
0063     PRIVATE
0064         ${CMAKE_CURRENT_SOURCE_DIR}
0065     PUBLIC
0066         $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0067         $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
0068 
0069 
0070 include(install_helper)
0071 rinstallLib(instantmessaging libraries)