mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
First bit of work making a package build
This commit is contained in:
parent
bf8d58163a
commit
0f5ff57a46
@ -1,15 +1,23 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
enable_testing()
|
||||
|
||||
project(jaytea)
|
||||
project(chaiscript)
|
||||
|
||||
SET (CMAKE_BUILD_TYPE gdb)
|
||||
SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb")
|
||||
SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb")
|
||||
|
||||
include_directories(dispatchkit)
|
||||
#SET (CMAKE_BUILD_TYPE rel)
|
||||
#SET (CMAKE_C_FLAGS_REL " -Wall -O3")
|
||||
#SET (CMAKE_CXX_FLAGS_REL " -Wall -O3")
|
||||
|
||||
add_subdirectory(dispatchkit bin)
|
||||
add_subdirectory(chaiscript bin)
|
||||
include_directories(dispatchkit chaiscript)
|
||||
|
||||
find_package(Boost 1.36.0)
|
||||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
add_executable(chaiscript_eval chaiscript/main.cpp)
|
||||
#add_executable(dispatchkit_test dispatchkit/test.cpp)
|
||||
target_link_libraries(chaiscript_eval ${Boost_LIBRARIES})
|
||||
install(TARGETS chaiscript_eval DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin)
|
||||
endif(Boost_FOUND)
|
||||
|
||||
|
||||
8
build_package.sh
Executable file
8
build_package.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .
|
||||
make install
|
||||
|
||||
INCLUDED_FILES="dispatchkit/bootstrap_stl.hpp dispatchkit/bootstrap.hpp dispatchkit/boxed_value.hpp dispatchkit/dispatchkit.hpp dispatchkit/function_call.hpp dispatchkit/proxy_constructors.hpp dispatchkit/proxy_functions.hpp dispatchkit/type_info.hpp chaiscript/chaiscript_engine.hpp chaiscript/chaiscript_eval.hpp chaiscript/chaiscript_parser.hpp chaiscript/chaiscript_prelude.hpp chaiscript/chaiscript.hpp bin/chaiscript_eval"
|
||||
|
||||
zip chaiscript-1.0.zip $INCLUDED_FILES
|
||||
@ -1,28 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
enable_testing()
|
||||
|
||||
project(chaiscript)
|
||||
|
||||
SET (CMAKE_BUILD_TYPE gdb)
|
||||
SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb")
|
||||
SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb")
|
||||
|
||||
find_package(Boost 1.36.0 COMPONENTS)
|
||||
if(Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories(../dispatchkit)
|
||||
|
||||
add_executable(chaiscript_eval main.cpp)
|
||||
target_link_libraries(chaiscript_eval ${Boost_LIBRARIES})
|
||||
|
||||
#add_executable(chaiscript_callbacktest callbacktest.cpp)
|
||||
#target_link_libraries(chaiscript_callbacktest ${Boost_LIBRARIES})
|
||||
|
||||
#add_executable(sensors sensors.cpp)
|
||||
#target_link_libraries(sensors ${Boost_LIBRARIES})
|
||||
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
enable_testing()
|
||||
|
||||
project(boxedcpp)
|
||||
|
||||
SET (CMAKE_BUILD_TYPE gdb)
|
||||
SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb")
|
||||
SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb")
|
||||
|
||||
find_package( Boost 1.36.0 COMPONENTS unit_test_framework)
|
||||
if(Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories(.)
|
||||
|
||||
add_executable(dispatchkit_test test.cpp)
|
||||
|
||||
add_executable(dispatchkit_unittest unittest.cpp)
|
||||
|
||||
target_link_libraries(dispatchkit_unittest ${Boost_LIBRARIES})
|
||||
|
||||
endif()
|
||||
|
||||
add_test(dispatchkit_unittest dispatchkit_unittest)
|
||||
26
license.txt
Normal file
26
license.txt
Normal file
@ -0,0 +1,26 @@
|
||||
Copyright 2009 Jason and Jonathan Turner. All Rights Reserved.
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of Jason Turner nor Jonathan Turner nor the
|
||||
name of contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Loading…
x
Reference in New Issue
Block a user