Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docs:guide-developer:creating-a-cmake-package-in-openwrt [2023/12/13 12:48] – created javad.rahimidocs:guide-developer:creating-a-cmake-package-in-openwrt [2024/08/15 05:37] (current) – Capitalization memicinn19
Line 1: Line 1:
-====== Create a Cmake package in OpenWRT ======+====== Create a Cmake package in OpenWrt ======
 In the [[docs:guide-developer:creating_a_meson_based_package|Meson tutorial]], we learned how to create a Meson package with a detailed guide. Since Cmake and Meson have similar roots, this tutorial will only focus on their differences. In the [[docs:guide-developer:creating_a_meson_based_package|Meson tutorial]], we learned how to create a Meson package with a detailed guide. Since Cmake and Meson have similar roots, this tutorial will only focus on their differences.
 ===== CMakeLists.txt ===== ===== CMakeLists.txt =====
Line 16: Line 16:
  
 ===== Makefile ===== ===== Makefile =====
-The ''Makefile'' is very similar to other OpenWRT-based makefiles. The only difference is that it includes ''cmake.mk'' instead of ''meson.mk'':+The ''Makefile'' is very similar to other OpenWrt-based makefiles. The only difference is that it includes ''cmake.mk'' instead of ''meson.mk'':
 <code Makefile> <code Makefile>
 include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
Line 37: Line 37:
  
 define Package/hellocmake/description define Package/hellocmake/description
- hellocmake is a simple application to demonstrate OpenWRT build system with cmake packages+ hellocmake is a simple application to demonstrate OpenWrt build system with cmake packages
 endef endef
  
  • Last modified: 2023/12/13 12:48
  • by javad.rahimi