summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore7
-rw-r--r--CMakeLists.txt17
-rw-r--r--qrtclient.pro19
3 files changed, 22 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index 71d9e03..9eafb49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,10 @@
+CMakeCache.txt
+CMakeFiles
+cmake_install.cmake
+CMakeLists.txt.user
libqrtclient.a
Makefile
moc_*
*.o
-.qmake.stash
-qrtclient.pro.user
+qrtclient_autogen
*.swp
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..f4ff8be
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,17 @@
+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
+ tickethistory.cxx
+ client.cxx)
+
+target_link_libraries(${PROJECT_NAME} Qt5::Core)
+
+include_directories(librtclient)
diff --git a/qrtclient.pro b/qrtclient.pro
deleted file mode 100644
index c425913..0000000
--- a/qrtclient.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-QT -= gui
-TEMPLATE = lib
-CONFIG += staticlib
-
-HEADERS += \
- qrtclient/user.hxx \
- qrtclient/ticket.hxx \
- qrtclient/tickethistory.hxx \
- qrtclient/client.hxx
-SOURCES += \
- user.cxx \
- ticket.cxx \
- tickethistory.cxx \
- client.cxx
-
-INCLUDEPATH += $$PWD/librtclient
-LIBS += $$PWD/librtclient/librtclient.a
-
-debug: DEFINES += DEBUG