Closed obastemur closed 7 years ago
Once this merged, will also make this part of test/native-tests under ChakraCore to make sure keeping ChakraCoreEmbed.cmake
up to date.
Sample command line usage:
Windows
> cmake . -DCHAKRACORE_PATH=<ChakraCore Path> -G "Visual Studio 14 2015 Win64"
> msbuild /p:Platform=x64 HelloWorld.sln
> Debug\Sample.exe
Linux/OSX
> cmake . -DCHAKRACORE_PATH=<ChakraCore Path>
> make
> ./Sample
@obastemur good stuff 👍 ! Can you add a readme like this one documenting the proper build & run steps for different platforms?
Added README, @liminzhu Thanks for review.
Linux / Windows / OSX
Embed ChakraCore via CMake using
ChakraCoreEmbed.cmake
as shown fromCMakeLists.txt