diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-06 23:28:54 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-06 23:28:54 +0800 |
commit | 2f3d600bd9cc52e2ff52b79b4b91358eb4f4df82 (patch) | |
tree | 4d9d7f58086797d210466db4b6ad2d1b4e69740e | |
parent | 3202dfef22592f9038201836ccab081f5e78f26a (diff) | |
parent | 4a29ec9723aef6b6d6a8e37fc49a2eb66bd095d4 (diff) |
Merge branch 'cmake'
-rw-r--r-- | .gitignore | 12 | ||||
-rw-r--r-- | CMakeLists.txt | 35 | ||||
m--------- | libicclient | 0 |
3 files changed, 38 insertions, 9 deletions
@@ -1,10 +1,4 @@ -html -libqicclient.a -Makefile -moc_* -*.o -qicclient.pro.user* -.qmake.stash *.swp -Makefile.Arm* -Makefile.X86* +CMakeLists.txt.user +build* +html diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bedb9ba --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,35 @@ +cmake_minimum_required(VERSION 3.5) + +project(qicclient) + +set(CMAKE_AUTOMOC ON) + +find_package(Qt5Core) + +add_library(${PROJECT_NAME} SHARED + ${PROJECT_NAME}/user.hxx + ${PROJECT_NAME}/catalog.hxx + ${PROJECT_NAME}/basket.hxx + ${PROJECT_NAME}/client.hxx + user.cxx + catalog.cxx + basket.cxx + client.cxx + ) + +target_link_libraries(${PROJECT_NAME} + Qt5::Core + icclient + ) + +target_compile_definitions(${PROJECT_NAME} PRIVATE QICCLIENT) + +install(TARGETS ${PROJECT_NAME} DESTINATION lib) +install(FILES + ${PROJECT_NAME}/user.hxx + ${PROJECT_NAME}/product.hxx + ${PROJECT_NAME}/catalog.hxx + ${PROJECT_NAME}/basket.hxx + ${PROJECT_NAME}/client.hxx + DESTINATION include/${PROJECT_NAME} + ) diff --git a/libicclient b/libicclient -Subproject 4443285897be4058891274e12d242dde25f0976 +Subproject a9eac750ab758d279dc97fc4bc5075ddc6f2289 |