aboutsummaryrefslogtreecommitdiff
path: root/plugins/ConfigurationEditor/CMakeLists.txt
blob: 22ef3d334e62b968e37107d70d1599a979766876 (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 ${CMAKE_SOURCE_DIR}/plugins
    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 ${installPath_plugin} CONFIGURATIONS Release)
else()
    install(TARGETS ConfigurationEditorPlugin LIBRARY DESTINATION ${installPath_plugin} CONFIGURATIONS Release)
endif()