This commit is contained in:
Blue 2019-03-29 17:54:34 +03:00
commit de36fe2a4e
15 changed files with 421 additions and 0 deletions

24
ui/CMakeLists.txt Normal file
View file

@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 3.0)
project(squawkUI)
# 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 the QtWidgets library
find_package(Qt5Widgets CONFIG REQUIRED)
set(squawkUI_SRC
squawk.cpp
accounts.cpp
)
# Tell CMake to create the helloworld executable
add_library(squawkUI ${squawkUI_SRC})
# Use the Widgets module from Qt 5.
target_link_libraries(squawkUI Qt5::Widgets)
# Install the executable
install(TARGETS squawkUI DESTINATION lib)