aboutsummaryrefslogtreecommitdiff
path: root/lib/about/CMakeLists.txt
blob: 7f53e8df95a5c6935df4d8557bf08bb39b4c95e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

add_library(about
    aboutdialog.cpp
    aboutdialog.h
    aboutdialog.ui
)

target_include_directories(about
    PRIVATE ${Boost_INCLUDE_DIRS}
    PRIVATE ${CMAKE_BINARY_DIR}/src
    PRIVATE ${CMAKE_SOURCE_DIR}/src
    PRIVATE ${CMAKE_SOURCE_DIR}/plugins
)

target_link_libraries(about Qt5::Widgets)