Skip to content

Trying to get this to work #16

@jtristano

Description

@jtristano

Hi @nick-young-gs . @nickyoung-github I'm trying to get this to generate header files from my pydantic class.. Here's the cmake

cmake_minimum_required(VERSION 3.9)
project(mdata_model)

set(CMAKE_CXX_STANDARD 20)

find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
find_package(pydantic_bind REQUIRED COMPONENTS HINTS "${Python3_SITELIB}")

pydantic_bind_add_package(./)

Here's the error

  10:30 ❯ cmake .
CMake Error at CMakeLists.txt:7 (find_package):
  Could not find a package configuration file provided by "pydantic_bind"
  with any of the following names:

    pydantic_bindConfig.cmake
    pydantic_bind-config.cmake

  Add the installation prefix of "pydantic_bind" to CMAKE_PREFIX_PATH or set
  "pydantic_bind_DIR" to a directory containing one of the above files.  If
  "pydantic_bind" provides a separate development package or SDK, be sure it
  has been installed.

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