{"id":1428,"date":"2012-04-01T22:37:38","date_gmt":"2012-04-01T13:37:38","guid":{"rendered":"http:\/\/mattyan.net\/blog\/?p=1428"},"modified":"2012-04-01T22:37:38","modified_gmt":"2012-04-01T13:37:38","slug":"cmake%e3%81%a7tex%e3%81%ae%e3%83%93%e3%83%ab%e3%83%89","status":"publish","type":"post","link":"https:\/\/mattyan.net\/blog\/?p=1428","title":{"rendered":"CMake\u3067tex\u306e\u30d3\u30eb\u30c9"},"content":{"rendered":"<p>CMake\u3067tex\u3092\u30d3\u30eb\u30c9\u3059\u308b\u65b9\u6cd5\u304c\u5927\u4f53\u308f\u304b\u3063\u305f\u304b\u3089\u30e1\u30e2\u66f8\u304d\u3002\u3053\u308c\u3092\u5fdc\u7528\u3059\u308c\u3070\u3001tex\u306b\u9650\u3089\u305a\u597d\u304d\u306b\u30d3\u30eb\u30c9\u3067\u304d\u308b\u304b\u306a\u3002<br \/>\nCMakeLists.txt<\/p>\n<pre><code class=\"\" data-line=\"\">\nSET(Document_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})\nSET(Document_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})\nADD_CUSTOM_TARGET(DOCUMENT ALL echo DEPENDS ${Document_BINARY_DIR}\/network.pdf)\nADD_CUSTOM_COMMAND(OUTPUT ${Document_BINARY_DIR}\/network.pdf DEPENDS ${Document_SOURCE_DIR}\/network.tex\n\tCOMMAND platex ARGS ${Document_SOURCE_DIR}\/network.tex\n\tCOMMAND dvipdfmx ARGS ${Document_BINARY_DIR}\/network.dvi\n)\n<\/code><\/pre>\n<p>Document_BINARY_DIR\u3068Document_SOURCE_DIR\u306f\u6c17\u5206\u3067\u5909\u3048\u3066\u308b\u3060\u3051\u3060\u304b\u3089\u5272\u308a\u3068\u3069\u3046\u3067\u3082\u3088\u304f\u3066\u3002<br \/>\nADD_CUSTOM_STAGET\u3067\u30d3\u30eb\u30c9\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u300cDOCUMENT\u300d\u3092\u8ffd\u52a0\u3057\u3001Document_BINARY_DIR\/network.pdf\u3092\u5b8c\u6210\u30d0\u30a4\u30ca\u30ea\u306b\u6307\u5b9a\u3002<br \/>\nADD_CUSTOM_COMMAND\u3067\u51fa\u529b\u3092Document_BINARY_DIR\/network.pdf\u306b\u3001\u5165\u529b\u3092Document_SOURCE_DIR\/network.tex\u306b\u6307\u5b9a\u3002COMMAND\u3067network.tex\u3092\u30d3\u30eb\u30c9\u3057\u3001dvi\u306b\u7d9a\u3044\u3066\u306eCOMMAND\u3067\u305d\u308c\u3092pdf\u306b\u5909\u63db\u3002dvi\u306e\u51fa\u529b\u5148\u306fDocument_BINARY_DIR\u306b\u306a\u308b\u306e\u3067\u3001\u305d\u3053\u3060\u3051\u6ce8\u610f\u3002<br \/>\n\u3042\u3068\u306f\u3001cmake\u3067Makefile\u3092\u4f5c\u3063\u3066\u3001make DOCUMENT\u3067\u30d3\u30eb\u30c9\u3002Document_BINARY_DIR\/network.pdf\u304c\u3067\u304d\u3066\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CMake\u3067tex\u3092\u30d3\u30eb\u30c9\u3059\u308b\u65b9\u6cd5\u304c\u5927\u4f53\u308f\u304b\u3063\u305f\u304b\u3089\u30e1\u30e2\u66f8\u304d\u3002\u3053\u308c\u3092\u5fdc\u7528\u3059\u308c\u3070\u3001tex\u306b\u9650\u3089\u305a\u597d\u304d\u306b\u30d3\u30eb\u30c9\u3067\u304d\u308b\u304b\u306a\u3002 CMakeLists.txt SET(Document_BINARY_DIR ${CMAKE_CUR &hellip; <a href=\"https:\/\/mattyan.net\/blog\/?p=1428\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CMake\u3067tex\u306e\u30d3\u30eb\u30c9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[],"class_list":["post-1428","post","type-post","status-publish","format-standard","hentry","category-3","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1428"}],"version-history":[{"count":0,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1428\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}