diff --git a/CMakeLists.txt b/CMakeLists.txt index 57c55d5..8bc8b6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ find_package(Boost 1.36.0) if (Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) add_executable(chaiscript_eval src/main.cpp) - #add_executable(dispatchkit_test src/dispatchkit_test.cpp) + #add_executable(dispatchkit_test contrib/test/dispatchkit_test.cpp) target_link_libraries(chaiscript_eval ${Boost_LIBRARIES}) install(TARGETS chaiscript_eval DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin) endif(Boost_FOUND) diff --git a/src/callbacktest.cpp b/contrib/test/callbacktest.cpp similarity index 100% rename from src/callbacktest.cpp rename to contrib/test/callbacktest.cpp diff --git a/src/dispatchkit_test.cpp b/contrib/test/dispatchkit_test.cpp similarity index 100% rename from src/dispatchkit_test.cpp rename to contrib/test/dispatchkit_test.cpp diff --git a/src/dispatchkit_unittest.cpp b/contrib/test/dispatchkit_unittest.cpp similarity index 100% rename from src/dispatchkit_unittest.cpp rename to contrib/test/dispatchkit_unittest.cpp diff --git a/src/sensors.cpp b/contrib/test/sensors.cpp similarity index 100% rename from src/sensors.cpp rename to contrib/test/sensors.cpp diff --git a/readme.txt b/readme.txt index fe3dd27..2b99cbf 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Release under the BSD license, see "license.txt" for details. ChaiScript is one of the first (and perhaps only) embedded scripting language designed from the ground up to directly target C++. Being a native C++ application, it has some advantages over existing embedded scripting languages: -1) It uses a header-only approach, which makes it easy to integrate with both new and old projects without changing the build requirements. +1) It uses a header-only approach, which makes it easy to integrate with existing projects. 2) It maintains type safety between your C++ application and the user scripts. 3) It supports a variety of C++ techniques including callbacks, overloaded functions, class methods, and stl containers. @@ -33,4 +33,4 @@ Once registered the function will be visible to scripts as "my_function_name" ChaiScript is similar to ECMAScript (aka JavaScript(tm)), but with some modifications to make it easier to use. For usage examples see the "samples" directory, and for more in-depth look at the language, the unit tests in the "unittests" directory cover the most ground. - +For example of how to register parts of your C++ application, see "example.cpp" in the "src" directory.