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 --recursiveto 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 foundbin/lccgen license issue -p ../projects/DEFAULT/ -o example.lic./example>> License OK- try a clean checkout or remove the folder
projectsand clean thebuildfolder. - try to compile
licenseccstandalone. - 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.
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-managerthe 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)