mujs can be imported via CMake FindPkgConfig module: find_package(PkgConfig) pkg_check_modules(MUJS REQUIRED IMPORTED_TARGET mujs) target_link_libraries(main PRIVATE PkgConfig::MUJS)