From e71900c75a2c557148a67f0aa43058a62c1c6719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 25 Sep 2019 10:13:43 +0800 Subject: CMakeLists.txt Still having a bug of undefined references when an app links to this library, which they say will be fixed in Qt 5.14. --- .gitignore | 5 +++++ CMakeLists.txt | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 CMakeLists.txt diff --git a/.gitignore b/.gitignore index 7e40417..03c1779 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,8 @@ *.swp Makefile moc_* +CMakeCache.txt +CMakeFiles +CMakeLists.txt.user +cmake_install.cmake +*_autogen diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a8b696d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0.0) + +project(qrtclient VERSION 0.1 LANGUAGES CXX) + +set(CMAKE_AUTOMOC ON) + +find_package(Qt5Core) + +add_library(${PROJECT_NAME} STATIC + user.cxx + ticket.cxx + client.cxx) + +target_link_libraries(${PROJECT_NAME} Qt5::Core) + +include_directories(librtclient) -- cgit v1.2.3