项目作者: NextCodeX

项目描述 :
函数计算
高级语言: CMake
项目地址: git://github.com/NextCodeX/MathX.git
创建时间: 2018-08-02T07:27:56Z
项目社区:https://github.com/NextCodeX/MathX

开源协议:MIT License

下载


MathX

函数计算

Travis

Compile

  1. $ cmake .

result

  1. -- The C compiler identification is AppleClang 9.1.0.9020039
  2. -- The CXX compiler identification is AppleClang 9.1.0.9020039
  3. -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
  4. -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
  5. -- Detecting C compiler ABI info
  6. -- Detecting C compiler ABI info - done
  7. -- Detecting C compile features
  8. -- Detecting C compile features - done
  9. -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
  10. -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
  11. -- Detecting CXX compiler ABI info
  12. -- Detecting CXX compiler ABI info - done
  13. -- Detecting CXX compile features
  14. -- Detecting CXX compile features - done
  15. -- Configuring done
  16. -- Generating done
  17. -- Build files have been written to: /Users/zhoumq/projj/github.com/NextCodeX/MathX

Install

  1. $ make install

result

  1. [ 50%] Built target MathFunctions
  2. Scanning dependencies of target MathX
  3. [ 75%] Building CXX object CMakeFiles/MathX.dir/main.cc.o
  4. [100%] Linking CXX executable MathX
  5. [100%] Built target MathX
  6. Install the project...
  7. -- Install configuration: ""
  8. -- Installing: /usr/local/bin/MathX
  9. -- Installing: /usr/local/include/config.h
  10. -- Installing: /usr/local/lib/libMathFunctions.a
  11. -- Installing: /usr/local/include/MathFunctions.h

Test

  1. $ make test

result
``` sh
Running tests…
Test project /Users/zhoumq/projj/github.com/NextCodeX/MathX
Start 1: test_run
1/5 Test #1: test_run ……………………. Passed 0.01 sec
Start 2: test_usage
2/5 Test #2: test_usage ………………….. Passed 0.01 sec
Start 3: test_5_2
3/5 Test #3: test_5_2 ……………………. Passed 0.01 sec
Start 4: test_10_5
4/5 Test #4: test_10_5 …………………… Passed 0.01 sec
Start 5: test_2_10
5/5 Test #5: test_2_10 …………………… Passed 0.00 sec

100% tests passed, 0 tests failed out of 5

Total Test time (real) = 0.04 sec

  1. ## Packaging
  2. 1. 打包
  3. 生成二进制安装包
  4. ``` sh
  5. $ cpack -C CPackConfig.cmake

生成源码安装包

  1. $ cpack -C CPackSourceConfig.cmake

result

  1. CPack: Create package using STGZ
  2. CPack: Install projects
  3. CPack: - Run preinstall target for: MathX
  4. CPack: - Install project: MathX
  5. CPack: Create package
  6. CPack: - package: /Users/zhoumq/projj/github.com/NextCodeX/MathX/MathX-0.1.1-Darwin.sh generated.
  7. CPack: Create package using TGZ
  8. CPack: Install projects
  9. CPack: - Run preinstall target for: MathX
  10. CPack: - Install project: MathX
  11. CPack: Create package
  12. CPack: - package: /Users/zhoumq/projj/github.com/NextCodeX/MathX/MathX-0.1.1-Darwin.tar.gz generated.
  1. 安装
    安装二进制包
  1. $ sh MathX-0.1.1-Darwin.sh

result
``` sh
MathX Installer Version: 0.1.1, Copyright (c) Humanity
This is a self-extracting archive.
The archive will be extracted to: /Users/zhoumq/projj/github.com/NextCodeX/MathX

If you want to stop extracting, please press .
MIT License

Copyright (c) 2018 开源小队

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Do you accept the license? [yN]:
y
By default the MathX will be installed in:
“/Users/zhoumq/projj/github.com/NextCodeX/MathX/MathX-0.1.1-Darwin”
Do you want to include the subdirectory MathX-0.1.1-Darwin?
Saying no will install in: “/Users/zhoumq/projj/github.com/NextCodeX/MathX” [Yn]:
Y

Using target directory: /Users/zhoumq/projj/github.com/NextCodeX/MathX/MathX-0.1.1-Darwin
Extracting, please wait…

Unpacking finished successfully
```

Author

MathX © NextCodeX, Released under the MIT License.