Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration with cmake #2

Open
tetsuhaut opened this issue Aug 20, 2023 · 0 comments
Open

integration with cmake #2

tetsuhaut opened this issue Aug 20, 2023 · 0 comments

Comments

@tetsuhaut
Copy link

Hi and thanks for this awesome lib!

I would like to use it as a third party. I have set the environment variable input_lite_DIR to contain the library install dir. In my project, I tried to import it with the following CMake instructions:

find_package(input_lite CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE input_lite)

Unfortunately, find_package() doesn't seem to find it:

CMake Error at CMakeLists.txt:101 (find_package):
  Could not find a package configuration file provided by "input_lite" with
  any of the following names:

    input_liteConfig.cmake
    input_lite-config.cmake

  Add the installation prefix of "input_lite" to CMAKE_PREFIX_PATH or set
  "input_lite_DIR" to a directory containing one of the above files.

What am I doing wrong?

Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant