Jump to content

CMake find package: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 June 2026

  • curprev 03:3203:32, 19 June 2026 SanzSkuy talk contribs 5,891 bytes +5,891 Created page with "<code>find_package</code> adalah command CMake untuk mendeteksi library eksternal yang sudah terinstall di sistem. CMake akan mencari konfigurasi library tersebut, lalu mengekspos '''imported target''' yang bisa langsung dipakai di <code>target_link_libraries</code>. <syntaxhighlight lang="cmake"> find_package(<NamaPackage> [version] [REQUIRED] [COMPONENTS ...]) </syntaxhighlight> ; <code>REQUIRED</code> : Build langsung gagal jika library tidak ditemukan. ; <code>COMP..."