subconverter/cmake/FindQuickJS.cmake
Tindy X 3d67406af6
Complete refactor of project file structure
Fix incorrect handing of default node parameters in SSD subscription.
Fix unable to parse some Clash rule-providers (#289).
Fix not filtering inline comments in some Surge rulesets. (#285)
Add Cron task options.
Add clean context option for persisting a JS context across the whole request.
Replace JS engine with QuickJS.
2021-03-23 18:09:00 +08:00

12 lines
329 B
CMake

find_path(QUICKJS_INCLUDE_DIRS quickjs/quickjs.h)
find_library(QUICKJS_LIBRARY libquickjs)
set(QUICKJS_LIBRARIES "${QUICKJS_LIBRARY}")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QuickJS DEFAULT_MSG
QUICKJS_INCLUDE_DIRS QUICKJS_LIBRARY)
mark_as_advanced(QUICKJS_INCLUDE_DIRS QUICKJS_LIBRARY)