You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
975 B
CMake
49 lines
975 B
CMake
cmake_minimum_required(VERSION 3.24)
|
|
project(services)
|
|
|
|
include(../3rdparty/QxOrm/QxOrm.cmake)
|
|
|
|
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ../plugins)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
find_package(Qt6 COMPONENTS
|
|
Core
|
|
Gui
|
|
Widgets
|
|
Qml
|
|
REQUIRED)
|
|
|
|
add_library(services SHARED
|
|
accserviceform.cpp
|
|
accserviceform.h
|
|
accserviceform.ui
|
|
accservicegrid.cpp
|
|
accservicegrid.h
|
|
accservicestablemodel.cpp
|
|
accservicestablemodel.h
|
|
services_global.h
|
|
services.cpp
|
|
services.h
|
|
servicesrc.qrc
|
|
data/accservice.cpp
|
|
data/accservice.h)
|
|
|
|
target_compile_definitions(services PRIVATE -DSERVICES_LIBRARY)
|
|
|
|
include_directories(../core)
|
|
|
|
target_link_libraries(services
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::Widgets
|
|
Qt::Qml
|
|
qdecimal
|
|
decnumber
|
|
QxOrm
|
|
core
|
|
)
|