1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
cmake_minimum_required (VERSION 3.5)
include("GNUInstallDirs")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(PluginName "ProcessProperties")
find_package(Qt5 5.0.0 REQUIRED Widgets Network)
add_library(${PluginName} SHARED
DialogProcessProperties.cpp
DialogProcessProperties.h
DialogProcessProperties.ui
DialogStrings.cpp
DialogStrings.h
DialogStrings.ui
ProcessProperties.cpp
ProcessProperties.h
DialogResults.cpp
DialogResults.h
DialogResults.ui
ResultsModel.cpp
ResultsModel.h
)
target_link_libraries(${PluginName} Qt5::Widgets Qt5::Network edb)
install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb)
set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF)
set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 14)
set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|