{"id":37084,"date":"2019-10-31T22:15:40","date_gmt":"2019-10-31T19:15:40","guid":{"rendered":"https:\/\/prohoster.info\/blog\/c-i-cmake-bratya-navek-chast-ii\/"},"modified":"2019-10-31T22:15:40","modified_gmt":"2019-10-31T19:15:40","slug":"c-i-cmake-bratya-navek-chast-ii","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/c-i-cmake-bratya-navek-chast-ii","title":{"rendered":"C++ \u00e9s CMake \u2013 \u00f6r\u00f6k testv\u00e9rek, II. r\u00e9sz","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"C++ \u00e9s CMake \u2013 \u00f6r\u00f6k testv\u00e9rek, II. r\u00e9sz\" src=\"\/wp-content\/uploads\/2019\/08\/1d86b8b1668ae29ff3e634df9059d9b1.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/461817\/\">Az el\u0151z\u0151 r\u00e9szben<\/a><\/noindex> err\u0151l a sz\u00f3rakoztat\u00f3 t\u00f6rt\u00e9netr\u0151l a CMake build rendszer keretein bel\u00fcli fejleszt\u00e9si k\u00f6nyvt\u00e1r fel\u00e9p\u00edt\u00e9s\u00e9r\u0151l volt sz\u00f3.<\/p>\n<p><\/p>\n<p>Ez\u00fattal egy ford\u00edthat\u00f3 k\u00f6nyvt\u00e1rat adunk hozz\u00e1, \u00e9s megvitatjuk a modulok \u00f6sszekapcsol\u00e1s\u00e1t egym\u00e1ssal.<\/p>\n<p><\/p>\n<blockquote><p>Mint kor\u00e1bban, akik sietnek, ugrhatnak egyb\u0151l <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/izvolov\/mylib\">az aktualiz\u00e1lt rep\u00f3ba<\/a><\/noindex> \u00e9s kipr\u00f3b\u00e1lhatj\u00e1k mindent a saj\u00e1t kez\u00fck \u00e1ltal.<\/p><\/blockquote>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" name=\"contents\"><\/a><\/noindex><\/p>\n<h2>Tartalom<\/h2>\n<p><\/p>\n<ol>\n<li><noindex><a rel=\"nofollow\" href=\"#divide\">Oszt\u00e1lyoz\u00e1s<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#impera\">Uralom<\/a><\/noindex><\/li>\n<\/ol>\n<p>\n<noindex><a rel=\"nofollow\" name=\"divide\"><\/a><\/noindex><\/p>\n<h2><noindex><a rel=\"nofollow\" href=\"#contents\">Oszt\u00e1lyoz\u00e1s<\/a><\/noindex><\/h2>\n<p><\/p>\n<p>Az els\u0151 dolog, amit meg kell tenn\u00fcnk a magas c\u00e9lunk el\u00e9r\u00e9s\u00e9hez, az, hogy a fejlesztett szoftvert univerz\u00e1lis, elszigetelt blokkokra bontjuk, amelyeket a felhaszn\u00e1l\u00f3 szempontj\u00e1b\u00f3l egys\u00e9ges szempontb\u00f3l kezel\u00fcnk.<\/p>\n<p><\/p>\n<p>Az els\u0151 r\u00e9szben egy ilyen standard blokkot \u00edrtunk le \u2013 egy projektet fejleszt\u00e9si k\u00f6nyvt\u00e1rral. Most azonban hozz\u00e1adunk a projekt\u00fcnkh\u00f6z egy ford\u00edthat\u00f3 k\u00f6nyvt\u00e1rat.<\/p>\n<p><\/p>\n<p>Ehhez kiemelj\u00fck a <code>myfunc<\/code> f\u00fcggv\u00e9ny megval\u00f3s\u00edt\u00e1s\u00e1t egy k\u00fcl\u00f6n <code>.cpp<\/code>-f\u00e1jlba:<\/p>\n<p><\/p>\n<pre><code class=\"diff\">diff --git a\/include\/mylib\/myfeature.hpp b\/include\/mylib\/myfeature.hpp\nindex 43db388..ba62b4f 100644\n--- a\/include\/mylib\/myfeature.hpp\n+++ b\/include\/mylib\/myfeature.hpp\n@@ -46,8 +46,5 @@ namespace mylib\n\n         ~  l\u00e1sd mystruct\n      * \/ \n-    inline bool myfunc (mystruct)\n-    {\n-        return true;\n-    }\n+    bool myfunc (mystruct);\n }\ndiff --git a\/src\/mylib\/myfeature.cpp b\/src\/mylib\/myfeature.cpp\nnew file mode 100644\nindex 0000000..abb5004\n--- \/dev\/null\n+++ b\/src\/mylib\/myfeature.cpp\n@@ -0,0 +1,9 @@\n+#include \n+\n+namespace mylib\n+{\n+    bool myfunc (mystruct)\n+    {\n+        return true;\n+    }\n+}<\/code><\/pre>\n<p><\/p>\n<p>Ezut\u00e1n defini\u00e1ljuk a ford\u00edthat\u00f3 k\u00f6nyvt\u00e1rat (<code>myfeature<\/code>), amely az el\u0151z\u0151 l\u00e9p\u00e9sb\u0151l nyert <code>.cpp<\/code>-f\u00e1jlra fog \u00e9p\u00fclni. Az \u00faj k\u00f6nyvt\u00e1rnak nyilv\u00e1nval\u00f3an sz\u00fcks\u00e9ge van a m\u00e1r l\u00e9tez\u0151 fejl\u00e9cf\u00e1jlokra, \u00e9s ennek biztos\u00edt\u00e1sa \u00e9rdek\u00e9ben \u00f6sszekapcsolhatjuk a megl\u00e9v\u0151 c\u00e9llal <code>mylib<\/code>. Az \u00f6sszekapcsol\u00e1s nyilv\u00e1nos, ami azt jelenti, hogy b\u00e1rmi, amihez csatlakoztatva van a c\u00e9l <code>myfeature<\/code>, automatikusan megkapja a c\u00e9lt <code>mylib<\/code> (<noindex><a rel=\"nofollow\" href=\"https:\/\/cmake.org\/cmake\/help\/v3.14\/command\/target_link_libraries.html#libraries-for-a-target-and-or-its-dependents\">r\u00e9szletesen a kapcsol\u00f3d\u00e1si m\u00f3dokr\u00f3l<\/a><\/noindex>). <\/p>\n<p><\/p>\n<pre><code class=\"diff\">diff --git a\/CMakeLists.txt b\/CMakeLists.txt\nindex 108045c..0de77b8 100644\n--- a\/CMakeLists.txt\n+++ b\/CMakeLists.txt\n@@ -64,6 +64,17 @@ target_compile_features(mylib INTERFACE cxx_std_17)\n\n add_library(Mylib::mylib ALIAS mylib)\n\n+###################################################################################################\n+##\n+##      Ford\u00edthat\u00f3 k\u00f6nyvt\u00e1r\n+##\n+###################################################################################################\n+\n+add_library(myfeature src\/mylib\/myfeature.cpp)\n+target_link_libraries(myfeature PUBLIC mylib)\n+\n+add_library(Mylib::myfeature ALIAS myfeature)\n+<\/code><\/pre>\n<p><\/p>\n<p>Ezut\u00e1n gondoskodunk arr\u00f3l, hogy az \u00faj k\u00f6nyvt\u00e1r is telep\u00fclj\u00f6n a rendszerbe:<\/p>\n<p><\/p>\n<pre><code class=\"diff\">@@ -72,7 +83,7 @@ add_library(Mylib::mylib ALIAS mylib)\n\n install(DIRECTORY include\/mylib DESTINATION include)\n\n-install(TARGETS mylib EXPORT MylibConfig)\n+install(TARGETS mylib myfeature EXPORT MylibConfig)\n install(EXPORT MylibConfig NAMESPACE Mylib:: DESTINATION share\/Mylib\/cmake)\n\n include(CMakePackageConfigHelpers)<\/code><\/pre>\n<p><\/p>\n<p>Fontos figyelembe venni, hogy a c\u00e9l \u00e9rdek\u00e9ben <code>myfeature<\/code>, ak\u00e1rcsak <code>mylib<\/code> pszeudonim lett l\u00e9trehozva a k\u00f6vetkez\u0151 el\u0151taggal <code>Mylib::<\/code>. Ugyanez \u00e9rv\u00e9nyes mindk\u00e9t c\u00e9lra, amikor azokat export\u00e1ljuk a rendszerbe val\u00f3 telep\u00edt\u00e9s c\u00e9lj\u00e1b\u00f3l. Ez lehet\u0151v\u00e9 teszi, hogy egys\u00e9ges m\u00f3don dolgozzunk a c\u00e9lokkal b\u00e1rmilyen <noindex><a rel=\"nofollow\" href=\"#impera\">kapcsolati s\u00e9ma<\/a><\/noindex>.<\/p>\n<p><\/p>\n<p>Ezut\u00e1n a modul teszteket a \u00faj k\u00f6nyvt\u00e1rral kell \u00f6sszekapcsolni (a funkci\u00f3t <code>myfunc<\/code> kivett\u00fck a fejl\u00e9cb\u0151l, \u00edgy most m\u00e1r linkelni kell):<\/p>\n<p><\/p>\n<pre><code class=\"diff\">diff --git a\/test\/CMakeLists.txt b\/test\/CMakeLists.txt\nindex 5620be4..bc1266c 100644\n--- a\/test\/CMakeLists.txt\n+++ b\/test\/CMakeLists.txt\n@@ -4,7 +4,7 @@ add_executable(mylib-unit-tests test_main.cpp)\ntarget_sources(mylib-unit-tests PRIVATE mylib\/myfeature.cpp)\ntarget_link_libraries(mylib-unit-tests\n    PRIVATE\n-        Mylib::mylib\n+        Mylib::myfeature\n        doctest::doctest\n)<\/code><\/pre>\n<p><\/p>\n<p>A fejl\u00e9c f\u00e1jlok (<code>Mylib::mylib<\/code>) most m\u00e1r k\u00fcl\u00f6n nem sz\u00fcks\u00e9gesek, mert, ahogyan m\u00e1r eml\u00edtett\u00fck, automatikusan csatlakoznak a k\u00f6nyvt\u00e1rral egy\u00fctt (<code>Mylib::myfeature<\/code>).<\/p>\n<p><\/p>\n<p>\u00c9s hozz\u00e1adunk n\u00e9h\u00e1ny r\u00e9szletet, hogy biztos\u00edtsuk a lefedetts\u00e9g m\u00e9r\u00e9seket az \u00fajonnan \u00e9rkezett k\u00f6nyvt\u00e1rral kapcsolatban:<\/p>\n<p><\/p>\n<pre><code class=\"diff\">@@ -15,11 +15,16 @@ if(MYLIB_COVERAGE AND GCOVR_EXECUTABLE)\n    target_compile_options(mylib-unit-tests PRIVATE --coverage)\n    target_link_libraries(mylib-unit-tests PRIVATE gcov)\n\n+    target_compile_options(myfeature PRIVATE --coverage)\n+    target_link_libraries(myfeature PRIVATE gcov)\n+\n    add_custom_target(coverage\n        COMMAND\n            ${GCOVR_EXECUTABLE}\n-                --root=${PROJECT_SOURCE_DIR}\/include\/\n-                --object-directory=${CMAKE_CURRENT_BINARY_DIR}\n+                --root=${PROJECT_SOURCE_DIR}\/\n+                --filter=${PROJECT_SOURCE_DIR}\/include\n+                --filter=${PROJECT_SOURCE_DIR}\/src\n+                --object-directory=${PROJECT_BINARY_DIR}\n        DEPENDS\n            check\n    )<\/code><\/pre>\n<p><\/p>\n<p>Tov\u00e1bbi k\u00f6nyvt\u00e1rakat, v\u00e9grehajthat\u00f3 f\u00e1jlokat stb. lehet hozz\u00e1adni. Ebben az esetben nem sz\u00e1m\u00edt, hogy pontosan hogyan kapcsol\u00f3dnak egym\u00e1shoz a projekt keretein bel\u00fcl. Csak az a fontos, hogy mely c\u00e9lok k\u00e9pezik modulunk interf\u00e9sz\u00e9t, azaz amelyek k\u00edv\u00fclr\u0151l el\u00e9rhet\u0151k.<\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"impera\"><\/a><\/noindex><\/p>\n<h2><noindex><a rel=\"nofollow\" href=\"#contents\">Uralom<\/a><\/noindex><\/h2>\n<p><\/p>\n<p>Mostant\u00f3l vannak standard modulblokkjaink, \u00e9s uralkodhatunk felett\u00fck: b\u00e1rmilyen bonyolults\u00e1g\u00fa strukt\u00far\u00e1t alkothatunk bel\u0151l\u00fck, telep\u00edtve \u0151ket a rendszerbe, vagy \u00f6sszekapcsolva \u0151ket egyetlen \u00e9p\u00edt\u00e9si rendszer keretein bel\u00fcl.<\/p>\n<p><\/p>\n<h3 id=\"ustanovka-v-sistemu\">Rendszerbe telep\u00edt\u00e9s<\/h3>\n<p><\/p>\n<p>Az egyik lehet\u0151s\u00e9g a modul haszn\u00e1lat\u00e1ra \u2014 a modulunk telep\u00edt\u00e9se a rendszerbe.<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">cmake --build \u00fatvonal\/a\/\u00f6sszefoglal\u00f3\/igazgat\u00f3s\u00e1g --target install<\/code><\/pre>\n<p><\/p>\n<p>Ezut\u00e1n b\u00e1rmely m\u00e1s projekthez csatlakoztathat\u00f3 a k\u00f6vetkez\u0151 parancs seg\u00edts\u00e9g\u00e9vel <noindex><a rel=\"nofollow\" href=\"https:\/\/cmake.org\/cmake\/help\/v3.14\/command\/find_package.html\"><code>find_package<\/code><\/a><\/noindex>.<\/p>\n<p><\/p>\n<pre><code class=\"cmake\">find_package(Mylib 1.0 REQUIRED)<\/code><\/pre>\n<p><\/p>\n<h3 id=\"podklyuchenie-v-kachestve-podmodulya\">Almodulk\u00e9nt val\u00f3 csatlakoz\u00e1s<\/h3>\n<p><\/p>\n<p>Egy m\u00e1sik lehet\u0151s\u00e9g \u2014 a mapp\u00e1nk csatlakoztat\u00e1sa egy m\u00e1sik projekthez almodulk\u00e9nt a k\u00f6vetkez\u0151 parancs seg\u00edts\u00e9g\u00e9vel <noindex><a rel=\"nofollow\" href=\"https:\/\/cmake.org\/cmake\/help\/v3.14\/command\/add_subdirectory.html\"><code>add_subdirectory<\/code><\/a><\/noindex>.<\/p>\n<p><\/p>\n<h3 id=\"ispolzovanie\">Haszn\u00e1lat<\/h3>\n<p><\/p>\n<p>A kapcsolati m\u00f3dok k\u00fcl\u00f6nb\u00f6z\u0151ek, de az eredm\u00e9ny mindk\u00e9t esetben ugyanaz. Mind a k\u00e9t esetben el\u00e9rhet\u0151k lesznek a c\u00e9lok a projektben, amely a modulunkat haszn\u00e1lja. <code>Mylib::myfeature<\/code> \u00e9s <code>Mylib::mylib<\/code>, amelyek p\u00e9ld\u00e1ul \u00edgy haszn\u00e1lhat\u00f3k:<\/p>\n<p><\/p>\n<pre><code class=\"cmake\">add_executable(some_executable some.cpp sources.cpp)\ntarget_link_libraries(some_executable PRIVATE Mylib::myfeature)<\/code><\/pre>\n<p><\/p>\n<p>Konkr\u00e9t esetben a k\u00f6nyvt\u00e1rat <code>Mylib::myfeature<\/code> akkor kell csatlakoztatni, amikor sz\u00fcks\u00e9ges \u00f6sszekapcsolni a k\u00f6nyvt\u00e1rral <code>libmyfeature<\/code>. Ha elegend\u0151 a fejl\u00e9cekb\u0151l, akkor \u00e9rdemes a k\u00f6nyvt\u00e1rat haszn\u00e1lni. <code>Mylib::mylib<\/code>.<\/p>\n<p><\/p>\n<p>A CMake-c\u00e9lok tr\u00fckk\u00f6sek lehetnek, p\u00e9ld\u00e1ul \u00fagy tervezt\u00e9k \u0151ket, hogy csak bizonyos tulajdons\u00e1gokat, f\u00fcgg\u0151s\u00e9geket \u00e9s hasonl\u00f3kat tov\u00e1bb\u00edtsanak. Ezzel egyes form\u00e1ban dolgozunk vel\u00fck.<\/p>\n<p><\/p>\n<p>Amit el kellett \u00e9rni.<\/p>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/463295\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u043e\u0431 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0438\u0441\u0442\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0438 CMake. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a \u043d\u0435\u043c\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0442\u0435\u043c, \u043a\u043e\u043c\u0443 \u043d\u0435 \u0442\u0435\u0440\u043f\u0438\u0442\u0441\u044f, \u043c\u043e\u0433\u0443\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438 \u043f\u043e\u0442\u0440\u043e\u0433\u0430\u0442\u044c \u0432\u0441\u0451 \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0412\u043b\u0430\u0441\u0442\u0432\u0443\u0439 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27802,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-37084","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/c-i-cmake-bratya-navek-chast-ii\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47C++ \u0438 CMake \u2014 \u0431\u0440\u0430\u0442\u044c\u044f \u043d\u0430\u0432\u0435\u043a, \u0447\u0430\u0441\u0442\u044c II | ProHoster\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/c-i-cmake-bratya-navek-chast-ii\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:15:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:15:40+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47C++ \u00e9s CMake \u2014 \u00f6r\u00f6kk\u00e9 testv\u00e9rek, II. r\u00e9sz | ProHoster","description":"","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/c-i-cmake-bratya-navek-chast-ii","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47C++ \u0438 CMake \u2014 \u0431\u0440\u0430\u0442\u044c\u044f \u043d\u0430\u0432\u0435\u043a, \u0447\u0430\u0441\u0442\u044c II | ProHoster","og:url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/c-i-cmake-bratya-navek-chast-ii","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:15:40+00:00","article:modified_time":"2019-10-31T19:15:40+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"37084","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 06:02:22","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:33:25","updated":"2026-01-22 06:02:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/37084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=37084"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/37084\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/27802"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=37084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=37084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=37084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}