]>
Commit | Line | Data |
---|---|---|
90a1406f BS |
1 | project(QCustomPlot) |
2 | cmake_minimum_required(VERSION 2.8.0) | |
3 | ||
4 | find_package ( Qt4 REQUIRED QtCore QtGui) | |
5 | include ( ${QT_USE_FILE} ) | |
6 | ||
7 | set (QCustomPlot_SRCS | |
8 | qcustomplot.cpp | |
9 | ) | |
10 | ||
11 | set (QCustomPlot_HDRS | |
12 | qcustomplot.h | |
13 | ) | |
14 | ||
15 | set (QCustomPlot_MOCS | |
16 | ${QCustomPlot_HDRS} | |
17 | ) | |
18 | ||
19 | QT4_WRAP_CPP(MOCS ${QCustomPlot_MOCS}) | |
20 | ||
21 | add_library(qcustomplot SHARED ${QCustomPlot_SRCS} ${MOCS}) | |
22 | set_target_properties(qcustomplot PROPERTIES VERSION 1.0.0 SOVERSION 1) | |
23 | target_link_libraries(qcustomplot ${QT_LIBRARIES}) | |
24 | install(TARGETS qcustomplot LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | |
25 | install(FILES ${QCustomPlot_HDRS} DESTINATION include) |