cmake_minimum_required(VERSION 3.24) project(postregister) 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 REQUIRED) add_library(postregister SHARED postregister.cpp postregister.h postregister_global.h postregistergrid.cpp postregistergrid.h data/postdata.cpp data/postdata.h) target_compile_definitions(postregister PRIVATE -DPOSTREGISTER_LIBRARY) include_directories(../core) target_link_libraries(postregister Qt::Core Qt::Gui Qt::Widgets qdecimal decnumber QxOrm core )