2020-03-16 11:50:35 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16.0)
|
2020-03-10 12:16:58 +01:00
|
|
|
project(ScreenPlaySysInfo)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt5Core)
|
|
|
|
find_package(Qt5Quick)
|
|
|
|
find_package(Qt5Gui)
|
|
|
|
find_package(Qt5Qml)
|
|
|
|
set(src screenplaysysinfo_plugin.cpp
|
|
|
|
sysinfo.cpp
|
|
|
|
cpu.cpp
|
|
|
|
ram.cpp
|
|
|
|
storage.cpp)
|
|
|
|
set(headers screenplaysysinfo_plugin.h
|
|
|
|
sysinfo.h
|
|
|
|
cpu.h
|
|
|
|
ram.h
|
|
|
|
mathhelper.h
|
|
|
|
storage.h)
|
2020-03-10 12:34:34 +01:00
|
|
|
|
|
|
|
add_library(screenplaysysinfo MODULE ${src} ${headers})
|
|
|
|
target_link_libraries(screenplaysysinfo PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Qml)
|
|
|
|
install(TARGETS screenplaysysinfo DESTINATION Libs)
|