File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 2.8)
2
2
project (chaiscript_extras)
3
3
4
+ if (BIICODE)
5
+ include ("biicode.cmake" )
6
+ RETURN ()
7
+ endif ()
8
+
4
9
# MINGW does not yet support C++11's concurrency features
5
10
if (MINGW)
6
11
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