Download upstream/emscripten/test/cmake/cpp_lib/CMakeLists.txt from arudradey/flst: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/arudradey/flst/resolve/main/upstream/emscripten/test/cmake/cpp_lib/CMakeLists.txt
- Command line
-
hf download hf://arudradey/flst/upstream/emscripten/test/cmake/cpp_lib/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/arudradey/flst/resolve/main/upstream/emscripten/test/cmake/cpp_lib/CMakeLists.txt
283 Bytes
| cmake_minimum_required(VERSION 3.16) | |
| project(cpp_library) | |
| set(CPP_LIBRARY_TYPE "SHARED" CACHE STRING "Library type to build") | |
| set_property(CACHE CPP_LIBRARY_TYPE PROPERTY STRINGS STATIC SHARED) | |
| add_library(cpp_lib ${CPP_LIBRARY_TYPE} lib.cpp) | |
| em_link_js_library(cpp_lib "lib.js") | |