cmake_minimum_required(VERSION 3.15...4.0) project(jwt_gen) # add_compile_options(-fdiagnostics-color=never) find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)` add_executable(jwt_gen jwt_gen.cpp) target_link_libraries(jwt_gen PRIVATE pybind11::embed)