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

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(utils VERSION 1.0.0 DESCRIPTION "Utilitary component")
0004 
0005 set(CMAKE_INCLUDE_CURRENT_DIR ON)
0006 
0007 set(CMAKE_AUTOMOC ON)
0008 set(CMAKE_AUTOUIC ON)
0009 set(CMAKE_AUTORCC ON)
0010 
0011 set(CMAKE_CXX_STANDARD 17)
0012 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0013 set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
0014 
0015 # Add a compiler flag
0016 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
0017 
0018 set(QT_REQUIRED_VERSION "6.3.0")
0019 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Network Test)
0020 
0021 
0022 set(public_utils_header
0023     include/utils/iohelper.h
0024     include/utils/networkdownloader.h
0025     include/utils/mappinghelper.h
0026     include/utils/logcategories.h
0027     include/utils/utils_global.h
0028     include/utils/directaccessdatastructure.h
0029 )
0030 
0031 set(utils_src
0032     src/iohelper.cpp
0033     src/networkdownloader.cpp
0034     src/mappinghelper.cpp
0035 )
0036 
0037 
0038 add_library(utils SHARED ${public_utils_header} ${utils_src})
0039 set_target_properties(utils PROPERTIES PUBLIC_HEADER "${public_utils_header}")
0040 target_compile_definitions(utils PRIVATE UTILS_LIBRARY)
0041 target_link_libraries(utils PRIVATE Qt6::Core Qt6::Gui Qt6::Network Qt6::Test)
0042 target_include_directories(utils PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
0043     PUBLIC
0044     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0045     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
0046 
0047 
0048 
0049 include(install_helper)
0050 rinstallLib(utils libraries)