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

0001 cmake_minimum_required(VERSION 3.14)
0002 
0003 project(data LANGUAGES CXX)
0004 
0005 set(CMAKE_INCLUDE_CURRENT_DIR ON)
0006 set(CMAKE_AUTOUIC ON)
0007 set(CMAKE_AUTOMOC ON)
0008 set(CMAKE_AUTORCC ON)
0009 set(CMAKE_CXX_STANDARD 17)
0010 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0011 
0012 find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
0013 find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
0014 
0015 add_library(data SHARED
0016   data_global.h
0017   data.cpp
0018   data.h
0019 )
0020 
0021 target_link_libraries(data PRIVATE Qt${QT_VERSION_MAJOR}::Core)
0022 
0023 target_compile_definitions(data PRIVATE DATA_LIBRARY)