2019-11-02 20:50:25 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(vCardUI)
|
|
|
|
|
|
|
|
# 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(vCardUI_SRC
|
|
|
|
vcard.cpp
|
|
|
|
emailsmodel.cpp
|
2019-11-06 15:14:49 +00:00
|
|
|
phonesmodel.cpp
|
2019-11-02 20:50:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Tell CMake to create the helloworld executable
|
2021-05-08 23:12:17 +00:00
|
|
|
add_library(vCardUI STATIC ${vCardUI_SRC})
|
2019-11-02 20:50:25 +00:00
|
|
|
|
|
|
|
# Use the Widgets module from Qt 5.
|
|
|
|
target_link_libraries(vCardUI Qt5::Widgets)
|