---
CMakeLists.txt | 20 ++++++++++++++++++++
src/CMakeLists.txt | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
create mode 100644 CMakeLists.txt
create mode 100644 src/CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..9de202a
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,20 @@
+cmake_minimum_required(VERSION 2.8.12)
+project(phonesim)
+set(PHONESIM_VERSION 1.21)
+
+include(FeatureSummary)
+include(GNUInstallDirs)
+
+find_package(Qt5 "5.10.0" REQUIRED NO_MODULE COMPONENTS Core Widgets Qml
Network DBus)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTOUIC ON)
+
+################# Enable C++14 #################
+
+set(CMAKE_CXX_STANDARD 14)
+
+################# build and install #################
+add_subdirectory(src)
+
+feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES
FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..6d7ebf5
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,40 @@
+set(PHONESIM_SRCS
+ control.cpp
+ controlbase.ui
+ qatutils.cpp
+ qatresult.cpp
+ qwsppdu.cpp
+ qgsmcodec.cpp
+ callmanager.cpp
+ qsimterminalresponse.cpp
+ qsmsmessagelist.cpp
+ qsmsmessage.cpp
+ qsimcontrolevent.cpp
+ conformancesimapplication.cpp
+ server.cpp
+ aidapplication.cpp
+ gsmitem.cpp
+ simauth.cpp
+ phonesim.cpp
+ qsimcommand.cpp
+ qsimenvelope.cpp
+ qcbsmessage.cpp
+ hardwaremanipulator.cpp
+ simapplication.cpp
+ qatresultparser.cpp
+ attranslator.cpp
+ gsmspec.cpp
+ main.cpp
+ simfilesystem.cpp
+ aes.c
+ comp128.c
+)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(phonesim ${PHONESIM_SRCS})
+target_compile_definitions(phonesim PRIVATE -DVERSION=${PHONESIM_VERSION}
-DQT_NO_FOREACH)
+target_link_libraries(phonesim Qt5::Core Qt5::Widgets Qt5::Qml Qt5::Network
Qt5::DBus)
+
+install(TARGETS phonesim RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(FILES default.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/phonesim/)
--
2.29.2
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]