mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-01 09:29:20 -05:00
060e925074
This adds the moc header files to the dependencies of the executable in the cmake project so they show up in their proper location in QtCreator. This makes it more pleasant to use the cmake files as a QtCreator project file. Also rework the CMakeLists.txt file a bit by fixing whitespace issues, rearranging some blocks and unifying the code style a bit.
19 lines
400 B
CMake
19 lines
400 B
CMake
cmake_minimum_required(VERSION 2.8.12.2)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS Widgets PrintSupport)
|
|
|
|
set(QCUSTOMPLOT_SRC
|
|
qcustomplot.cpp
|
|
)
|
|
|
|
set(QCUSTOMPLOT_MOC_HDR
|
|
qcustomplot.h
|
|
)
|
|
|
|
add_library(qcustomplot ${QCUSTOMPLOT_SRC} ${QCUSTOMPLOT_MOC_HDR} ${QCUSTOMPLOT_MOC})
|
|
|
|
target_link_libraries(qcustomplot Qt5::Widgets Qt5::PrintSupport)
|