Skip to content

Repository files navigation

This project show how to add the library as a git submodule of your project. This is the recommended integration way. First download all the libraries for your environment. If you didn't checkout with the --recursive option you can run

git submodule init --recursivegit submodule update --recursive

to update submodules. Check that the folder submodule\extern\open-license-manager exists. Install the prerequisites for Linux or Windows.

cd buildcmake .. -DCMAKE_INSTALL_PREFIX=. #in windows you also need to specify -DBOOST_ROOT=`folder where boost is installed`cmake --build . --target install./example>> License file not found
bin/lccgen license issue -p ../projects/DEFAULT/ -o example.lic./example>> License OK

The project doesn't compile

  • try a clean checkout or remove the folder projects and clean the build folder.
  • try to compile licensecc standalone.
  • be sure to have installed the dependencies at the right version and to be running on a supported platform.
  • ask for help on user forum.

Integrating into your project

If you want to add a git submodule to your project run this command:

git submodule add --recursive -b develop https://github.com/open-license-manager/open-license-manager.git extern/open-license-manager

the cmake module to easily find LicenseCC is in cmake/Findlicensecc.cmake.

Inserting the following lines into you CMakeLists.txt should get things right:

find_package(licensecc2.0.0REQUIRED)
message(STATUS"LicenseCC found "${licensecc_FOUND})
add_executable(examplesrc/example.cpp) cmake_policy(SETCMP0028NEW)
target_link_libraries(examplelicensecc::licensecc_static)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages