aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/CMakeLists.txt
blob: 7c9a7740e0ed07a007a955848c86d1958dc3a995 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5WebEngineWidgets REQUIRED)

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)

add_library(ProfileEditorPlugin SHARED
        profileeditorplugin.cpp
        profileeditorplugin.h
        forms/profileview.cpp
        forms/profileview.h
        forms/profileview.ui
        forms/profilemanagerdialog.cpp
        forms/profilemanagerdialog.h
        forms/profilemanagerdialog.ui
        forms/newprofiledialog.cpp
        forms/newprofiledialog.h
        forms/newprofiledialog.ui
        forms/newhttpheaderdialog.cpp
        forms/newhttpheaderdialog.h
        forms/newhttpheaderdialog.ui
)

target_include_directories(ProfileEditorPlugin
    PRIVATE ${CMAKE_SOURCE_DIR}/plugins
    PRIVATE ${CMAKE_SOURCE_DIR}/lib/web
)

target_link_libraries(ProfileEditorPlugin
    PRIVATE Qt5::Widgets
    PRIVATE Qt5::WebEngineWidgets
    PRIVATE web
)

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