Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] One package with more than one CMakeLists.txt (dlib)
@ 2018-07-08 13:43 Dennis Schulmeister-Zimolong
  2018-07-08 14:07 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Schulmeister-Zimolong @ 2018-07-08 13:43 UTC (permalink / raw)
  To: buildroot

Hi,

I'm currently trying to create a buildroot package for libdlib.
(http://dlib.net/). As dlib uses CMake the package definition itself is
straight-forward. However the source tree also contains a few utility
applications as well as python bindings which each come with their own
CMakeLists.txt.

What's the best way to deal with this? Right now my Config.in looks
like this:

config BR2_PACKAGE_LIBDLIB
	bool "libdlib"
	...

if BR2_PACKAGE_LIBDLIB

config BR2_PACKAGE_LIBDLIB_TOOLS_ARCHIVED
	bool "archived tools"
	help
	  Archived tools from the tools/archive directory inside
	  the dlib source tree

config BR2_PACKAGE_LIBDLIB_TOOLS_HTMLIFY
	bool "htmlify"
	help
	  Utility program htmlify from the tools/htmlify directory
	  inside the dlib source tree

...
endif

Is this even feasible? How can I execute CMake more than once with the
cmake-package infrastructure without reinventing the wheel. Or is it
better to define separate packages for each tool although they all live
in the same source tree?

Kind regards, Dennis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-08 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-08 13:43 [Buildroot] One package with more than one CMakeLists.txt (dlib) Dennis Schulmeister-Zimolong
2018-07-08 14:07 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox