https://github.com/robloach/quickjs-cmake
CMake definition file for QuickJS
https://github.com/robloach/quickjs-cmake
quickjs
Last synced: 4 months ago
JSON representation
CMake definition file for QuickJS
- Host: GitHub
- URL: https://github.com/robloach/quickjs-cmake
- Owner: RobLoach
- License: other
- Created: 2022-10-01T01:21:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T01:31:14.000Z (over 3 years ago)
- Last Synced: 2025-06-03T01:45:47.964Z (9 months ago)
- Topics: quickjs
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QuickJS CMake
[CMake](https://cmake.org/) definition file for [QuickJS](https://bellard.org/quickjs/).
## Usage
``` cmake
# Dependencies
include(FetchContent)
FetchContent_Declare(
quickjscmake
GIT_REPOSITORY https://github.com/robloach/quickjs-cmake.git
GIT_TAG 2021.3.27
)
FetchContent_GetProperties(quickjscmake)
if (NOT quickjscmake_POPULATED)
set(FETCHCONTENT_QUIET NO)
FetchContent_Populate(quickjscmake)
add_subdirectory(${quickjscmake_SOURCE_DIR} ${quickjscmake_BINARY_DIR})
endif()
# Application
add_executable(MyProject main.c)
target_link_libraries(MyProject PUBLIC quickjs)
```
# License
[MIT](LICENSE)