File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 2.8 )
22project (chaiscript_extras)
33
4+ if (BIICODE)
5+ include ("biicode.cmake" )
6+ RETURN ()
7+ endif ()
8+
49# MINGW does not yet support C++11's concurrency features
510if (MINGW)
611 option (MULTITHREAD_SUPPORT_ENABLED "Multithreaded Support Enabled" FALSE )
Original file line number Diff line number Diff line change 1+ set (BII_LIB_DEPS "pthread -ldl" )
2+
3+ ADD_BIICODE_TARGETS ()
4+
5+
6+ IF (APPLE )
7+ TARGET_COMPILE_OPTIONS (${BII_BLOCK_TARGET} INTERFACE "-std=c++11 -stdlib=libc++" )
8+ ELSEIF (WIN32 OR UNIX )
9+ TARGET_COMPILE_OPTIONS (${BII_BLOCK_TARGET} INTERFACE "-std=c++11" )
10+ ENDIF (APPLE )
11+
Original file line number Diff line number Diff line change 1+ #include " chaiscript/chaiscript.hpp"
2+ #include " chaiscript/chaiscript_stdlib.hpp"
3+ #include " include/chaiscript/extras/math.hpp"
4+
5+ #include < iostream>
6+
7+ int main ()
8+ {
9+ auto stdlib = chaiscript::Std_Lib::library ();
10+ auto mathlib = chaiscript::extras::math::bootstrap ();
11+
12+ chaiscript::ChaiScript chai (stdlib);
13+ chai.add (mathlib);
14+ }
You can’t perform that action at this time.
0 commit comments