Samsung / ONE

On-device Neural Engine
Other
411 stars 144 forks source link

[cmake] Rearrange custom cmake package #1726

Open hseok-oh opened 4 years ago

hseok-oh commented 4 years ago

I think we need new standard to rearrange cmake packages

cc/ @parjong @seanshpark

Concept

External library's source code can be shared by compiler and runtime. But built binary or pre-installed library may not be shared because

Now

TODO

seanshpark commented 4 years ago

package folder seems to be packages

glistening commented 4 years ago

@hseok-oh

  • infra/nncc/cmake/packages: runtime library package (build result)

Maybe infra/nnfw/cmake/package

  • nnfw_find_package wrapper: same, but don't download external library code

nnfw_find_package may download external library source (e.g. boost source).

hseok-oh commented 4 years ago

nnfw_find_package may download external library source (e.g. boost source).

Source download package (e.g. boost source) will be moved to infra/cmake/packages

glistening commented 4 years ago

@hseok-oh I meant nnfw_find_package(BOOST) will try to dowonload if BUILD_BOOST is on.