aimotive-legacy / cmakex

lightweight package manager for CMake
4 stars 1 forks source link

add support for local (non-git) projects #4

Open tamaskenez opened 7 years ago

tamaskenez commented 7 years ago

Such projects could be specified without GIT_URL:

add_pkg(SOURCE_DIR something ...)

possible cases for SOURCE_DIR and GIT_URL SOURCE_DIR GIT_URL abs yes ERROR abs no OK, local project, no clone: SOURCE_DIR/CMakeLists.txt rel yes OK, clone_dir/SOURCE_DIR/CMakeLists.txt rel no OK, local project, no clone: parent_path(deps.cmake)/SOURCE_DIR/CMakeLists.txt no yes OK, clone_dir/CMakeLists.txt no no ERROR