mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
56 lines
1.3 KiB
CMake
56 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(DataBaseLMS LANGUAGES CXX)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
|
find_package(Qt5 COMPONENTS Sql REQUIRED)
|
|
find_package(Qt5 COMPONENTS LinguistTools REQUIRED)
|
|
|
|
add_library(DataBaseLMS SHARED
|
|
DataBaseLMS_global.h
|
|
databaselms.cpp
|
|
databaselms.h
|
|
interfacedatabaselms.cpp
|
|
interfacedatabaselms.h
|
|
basicentity.cpp
|
|
basicentity.h
|
|
user.cpp
|
|
user.h
|
|
instructor.cpp
|
|
instructor.h
|
|
trainee.cpp
|
|
trainee.h
|
|
group.cpp
|
|
group.h
|
|
computer.cpp
|
|
computer.h
|
|
task.cpp
|
|
task.h
|
|
classroom.cpp
|
|
classroom.h
|
|
)
|
|
|
|
target_link_libraries(DataBaseLMS PRIVATE Qt5::Widgets)
|
|
target_link_libraries(DataBaseLMS PRIVATE Qt5::Sql)
|
|
|
|
target_compile_definitions(DataBaseLMS PRIVATE DATABASELMS_LIBRARY)
|
|
|
|
add_custom_command(TARGET DataBaseLMS
|
|
POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
d:/QT/BUILDS/LMS/DB_LMS/Debug64/libDataBaseLMS.dll
|
|
d:/QT/BUILDS/LMS/TestServerLMS/Debug64)
|
|
|
|
add_custom_command(TARGET DataBaseLMS
|
|
POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
d:/QT/BUILDS/LMS/DB_LMS/Debug64/libDataBaseLMS.dll
|
|
d:/QT/BUILDS/LMS/GUIdataBaseLMS/Debug64)
|