-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
47 lines (35 loc) · 1.25 KB
/
CMakeLists.txt
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
44
45
46
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "DEBUG")
ENDIF()
PROJECT("plotdes")
Message("Project spuce plotdes")
set(CMAKE_CXX_FLAGS " -std=c++11 ")
set(CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets)
ADD_DEFINITIONS("-Wall -fPIC")
LINK_DIRECTORIES("/usr/local/lib")
set(EXECUTABLE_OUTPUT_PATH ..)
set(SOURCES
make_filter.cpp
des_filter.cpp
)
find_package(SPUCE CONFIG)
if (SPUCE_FOUND)
message(STATUS "Found Spuce!")
message(STATUS "Spuce inc dir = ${Spuce_INCLUDE_DIRS}")
message(STATUS "Spuce libs = ${Spuce_LIBRARIES}")
endif()
SET(plotdes_SOURCES main.cpp mainwindow.cpp other_freq.cpp qcustomplot.cpp)
SET(plotdes_HEADERS mainwindow.h other_freq.h qcustomplot.h)
INCLUDE_DIRECTORIES(".." "/usr/local/opt/qt5/include" "${Spuce_INCLUDE_DIRS}" ${QT5_INCLUDES})
ADD_DEFINITIONS(${QT5Widgets_DEFINITIONS})
ADD_LIBRARY(filtlib ${SOURCES} ${FILT_SRCS})
ADD_EXECUTABLE(plotdes ${plotdes_SOURCES} ${plotdes_HEADERS_MOC})
TARGET_LINK_LIBRARIES(plotdes filtlib ${QT_LIBRARIES} ${Spuce_LIBRARIES})
QT5_USE_Modules(plotdes Gui)
QT5_USE_Modules(plotdes Core)
QT5_USE_Modules(plotdes Widgets)
QT5_USE_Modules(plotdes PrintSupport)