Skip to content

integration with cmake #2

@tetsuhaut

Description

@tetsuhaut

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions