aboutsummaryrefslogtreecommitdiff
path: root/plugins/ConfigurationEditor/CMakeLists.txt
blob: 5f66e138c00cdd2f4ccc72dedaf07eb067ba70dd (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
    ${CMAKE_SOURCE_DIR}/include/plugininterface.h
    ${CMAKE_SOURCE_DIR}/include/browserinterface.h

    configurationeditorplugin.cpp
    configurationeditorplugin.h
    forms/configurationdialog.cpp
    forms/configurationdialog.h
    forms/configurationdialog.ui
)

target_include_directories(ConfigurationEditorPlugin
    PRIVATE ${CMAKE_SOURCE_DIR}/include
)

target_link_libraries(ConfigurationEditorPlugin
    PRIVATE Qt5::Widgets
)

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