aboutsummaryrefslogtreecommitdiff
path: root/plugins/ConfigurationEditor/CMakeLists.txt
blob: 0df613fb04e5b103286f63844e0f91036d6ce33c (plain)
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
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)

add_library(ConfigurationEditorPlugin SHARED
    configurationeditorplugin.cpp
    configurationeditorplugin.h
    forms/configurationdialog.cpp
    forms/configurationdialog.h
    forms/configurationdialog.ui
)

target_include_directories(ConfigurationEditorPlugin
    PRIVATE ..
    PRIVATE ${CMAKE_SOURCE_DIR}/lib/configuration
    PRIVATE ${Boost_INCLUDE_DIRS}
)

target_link_libraries(ConfigurationEditorPlugin
    PRIVATE Qt5::Widgets
    PRIVATE configuration
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    install(TARGETS ConfigurationEditorPlugin RUNTIME DESTINATION ${PLUGIN_DESTINATION} CONFIGURATIONS Release)
else()
    install(TARGETS ConfigurationEditorPlugin LIBRARY DESTINATION ${PLUGIN_DESTINATION} CONFIGURATIONS Release)
endif()