-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (32 loc) · 1.15 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
cmake_minimum_required(VERSION 3.0)
project(Qlockin)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
# Instruct CMake to create code from Qt designer ui files
# set(CMAKE_AUTOUIC ON)
# Find libraryies
include(FindQwt.cmake)
find_package(Qt5Widgets CONFIG REQUIRED)
#find_package(Qwt REQUIRED)
# set(qlockin_SRC
# src/main.cpp
# src/lockin.cpp
# src/mainwindow.cpp
# )
file(GLOB LIBSOURSES "lib/*.cpp")
file(GLOB QLOCKINSRC "qlockin/*.cpp")
file(GLOB QLOCKINLITESRC "qlockin-lite/*.cpp")
# file(GLOB HEADERS "src/*.h")
# Tell CMake to create the helloworld executable
add_executable(qlockin ${LIBSOURSES} ${QLOCKINSRC})
target_include_directories(qlockin PRIVATE lib/ qlockin/)
# Use the Widgets module from Qt 5.
target_link_libraries(qlockin Qt5::Widgets Qwt::Qwt)
add_executable(qlockin-lite ${LIBSOURSES} ${QLOCKINLITESRC})
target_include_directories(qlockin-lite PRIVATE lib/ qlockin/)
# Use the Widgets module from Qt 5.
target_link_libraries(qlockin-lite Qt5::Widgets Qwt::Qwt)
# Install the executable
# install(TARGETS qlockin DESTINATION bin)