From 4d9bf8032dd659e091394d688b6a2c59bf222240 Mon Sep 17 00:00:00 2001 From: Vitaly Svyastyn Date: Tue, 31 Oct 2017 13:32:16 +0200 Subject: Initial CMake support. (#1013) * CMake files for building application and core library. * CMake files for core plugins. Now it runs! * CMake files for some plugins. --- protocols/CMakeLists.txt | 4 ++++ protocols/FacebookRM/CMakeLists.txt | 5 +++++ protocols/FacebookRM/proto_facebook/CMakeLists.txt | 2 ++ protocols/JabberG/CMakeLists.txt | 7 +++++++ protocols/JabberG/jabber_xstatus/CMakeLists.txt | 2 ++ protocols/JabberG/proto_jabber/CMakeLists.txt | 2 ++ protocols/MSN/CMakeLists.txt | 5 +++++ protocols/MSN/proto_msn/CMakeLists.txt | 2 ++ protocols/SkypeWeb/CMakeLists.txt | 6 ++++++ protocols/SkypeWeb/proto_conn_skype/CMakeLists.txt | 2 ++ protocols/SkypeWeb/proto_skype/CMakeLists.txt | 2 ++ 11 files changed, 39 insertions(+) create mode 100644 protocols/CMakeLists.txt create mode 100644 protocols/FacebookRM/CMakeLists.txt create mode 100644 protocols/FacebookRM/proto_facebook/CMakeLists.txt create mode 100644 protocols/JabberG/CMakeLists.txt create mode 100644 protocols/JabberG/jabber_xstatus/CMakeLists.txt create mode 100644 protocols/JabberG/proto_jabber/CMakeLists.txt create mode 100644 protocols/MSN/CMakeLists.txt create mode 100644 protocols/MSN/proto_msn/CMakeLists.txt create mode 100644 protocols/SkypeWeb/CMakeLists.txt create mode 100644 protocols/SkypeWeb/proto_conn_skype/CMakeLists.txt create mode 100644 protocols/SkypeWeb/proto_skype/CMakeLists.txt (limited to 'protocols') diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt new file mode 100644 index 0000000000..0c4b8d722e --- /dev/null +++ b/protocols/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory(FacebookRM) +add_subdirectory(JabberG) +add_subdirectory(MSN) +add_subdirectory(SkypeWeb) \ No newline at end of file diff --git a/protocols/FacebookRM/CMakeLists.txt b/protocols/FacebookRM/CMakeLists.txt new file mode 100644 index 0000000000..6441c53332 --- /dev/null +++ b/protocols/FacebookRM/CMakeLists.txt @@ -0,0 +1,5 @@ +file(GLOB SOURCES "src/*.h" "src/requests/*.h" "src/*.cpp" "res/*.rc" "${CMAKE_SOURCE_DIR}/utils/std_string_utils.cpp") +set(TARGET Facebook) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} libjson) +add_subdirectory(proto_facebook) \ No newline at end of file diff --git a/protocols/FacebookRM/proto_facebook/CMakeLists.txt b/protocols/FacebookRM/proto_facebook/CMakeLists.txt new file mode 100644 index 0000000000..be5f194172 --- /dev/null +++ b/protocols/FacebookRM/proto_facebook/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_Facebook) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file diff --git a/protocols/JabberG/CMakeLists.txt b/protocols/JabberG/CMakeLists.txt new file mode 100644 index 0000000000..257a4cd8ae --- /dev/null +++ b/protocols/JabberG/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc") +set(TARGET Jabber) +include_directories(${CMAKE_SOURCE_DIR}/libs/libaxolotl/src) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} Zlib libaxolotl libeay32.lib ssleay32.lib) +add_subdirectory(jabber_xstatus) +add_subdirectory(proto_jabber) \ No newline at end of file diff --git a/protocols/JabberG/jabber_xstatus/CMakeLists.txt b/protocols/JabberG/jabber_xstatus/CMakeLists.txt new file mode 100644 index 0000000000..9a16f9320c --- /dev/null +++ b/protocols/JabberG/jabber_xstatus/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET xStatus_Jabber) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file diff --git a/protocols/JabberG/proto_jabber/CMakeLists.txt b/protocols/JabberG/proto_jabber/CMakeLists.txt new file mode 100644 index 0000000000..855e7aa315 --- /dev/null +++ b/protocols/JabberG/proto_jabber/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_Jabber) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file diff --git a/protocols/MSN/CMakeLists.txt b/protocols/MSN/CMakeLists.txt new file mode 100644 index 0000000000..a3984234ef --- /dev/null +++ b/protocols/MSN/CMakeLists.txt @@ -0,0 +1,5 @@ +file(GLOB SOURCES "src/*.h" "src/skylogin/*.h" "src/*.cpp" "src/*.c" "src/skylogin/*.c" "res/*.rc") +set(TARGET MSN) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} libeay32.lib) +add_subdirectory(proto_msn) \ No newline at end of file diff --git a/protocols/MSN/proto_msn/CMakeLists.txt b/protocols/MSN/proto_msn/CMakeLists.txt new file mode 100644 index 0000000000..7df814f1c5 --- /dev/null +++ b/protocols/MSN/proto_msn/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_MSN) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file diff --git a/protocols/SkypeWeb/CMakeLists.txt b/protocols/SkypeWeb/CMakeLists.txt new file mode 100644 index 0000000000..739bbe8aec --- /dev/null +++ b/protocols/SkypeWeb/CMakeLists.txt @@ -0,0 +1,6 @@ +file(GLOB SOURCES "src/*.h" "src/requests/*.h" "src/requests/asm/*.h" "src/*.cpp" "res/*.rc") +set(TARGET SkypeWeb) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} libjson) +add_subdirectory(proto_conn_skype) +add_subdirectory(proto_skype) \ No newline at end of file diff --git a/protocols/SkypeWeb/proto_conn_skype/CMakeLists.txt b/protocols/SkypeWeb/proto_conn_skype/CMakeLists.txt new file mode 100644 index 0000000000..14b4eac82c --- /dev/null +++ b/protocols/SkypeWeb/proto_conn_skype/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_conn_Skype) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file diff --git a/protocols/SkypeWeb/proto_skype/CMakeLists.txt b/protocols/SkypeWeb/proto_skype/CMakeLists.txt new file mode 100644 index 0000000000..9112f38771 --- /dev/null +++ b/protocols/SkypeWeb/proto_skype/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_Skype) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake) \ No newline at end of file -- cgit v1.2.3