{"id":4064,"date":"2021-04-27T18:59:20","date_gmt":"2021-04-27T09:59:20","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=4064"},"modified":"2021-06-07T08:41:38","modified_gmt":"2021-06-06T23:41:38","slug":"cmake-glob","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/4064","title":{"rendered":"[CMake] GLOB"},"content":{"rendered":"<h2>\u66f8\u5f0f<\/h2>\n<pre class=\"lang:default highlight:0 decode:true \" >file(GLOB, \u5909\u6570\u540d, \u691c\u7d22\u30d1\u30bf\u30fc\u30f3)<\/pre>\n<h2>\u4f7f\u7528\u4f8b<\/h2>\n<pre class=\"lang:default highlight:0 decode:true \" >file(GLOB, TARGETS, *.cpp)\r\nadd_executable(a.out ${TARGETS})<\/pre>\n<p>cmake\u306efile\u30b3\u30de\u30f3\u30c9\u306b\u306f<strong>GLOB<\/strong>\u306e\u4ed6\u306b\u3082<strong>WRITE<\/strong>\u3084<strong>READ<\/strong>, <strong>REMOVE<\/strong>\u306a\u3069\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u7cfb\u306e\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u5b58\u5728\u3059\u308b\u3002\u983b\u7e41\u306b\u4f7f\u3046\u306e\u304c<strong>GLOB<\/strong> \u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u3067\u3042\u308b\u3002<\/p>\n<p>\u203b <strong>GLOB<\/strong> : UNIX\u7cfb\u74b0\u5883\u3067\u3064\u304b\u308f\u308c\u308b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30bb\u30c3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u30d1\u30bf\u30fc\u30f3<\/p>\n<h2>references<\/h2>\n<ul>\n<li><a href=\"https:\/\/cmake.org\/cmake\/help\/latest\/command\/file.html\">https:\/\/cmake.org\/cmake\/help\/latest\/command\/file.html<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u66f8\u5f0f file(GLOB, \u5909\u6570\u540d, \u691c\u7d22\u30d1\u30bf\u30fc\u30f3) \u4f7f\u7528\u4f8b file(GLOB, TARGETS, *.cpp) add_executable(a.out ${TARGETS}) cmake\u306efile\u30b3\u30de\u30f3\u30c9\u306b\u306fGLO [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[111],"class_list":["post-4064","post","type-post","status-publish","format-standard","hentry","category-memo","tag-cmake"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=4064"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4064\/revisions"}],"predecessor-version":[{"id":4270,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4064\/revisions\/4270"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=4064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=4064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=4064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}