-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ChenPi11/main
[Pull Request] Optimize structures and fix some bugs.
- Loading branch information
Showing
13 changed files
with
15 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,51 +7,18 @@ In future, you will be able to import CppEnhanced from vcpkg and other package m | |
|
||
# Build | ||
|
||
## Get source codes | ||
## Dependencies | ||
|
||
```shell | ||
git clone [email protected]:Dynesshely/CppEnhanced.git | ||
``` | ||
|
||
## On Linux, Unix, Cygwin, MacOS or other unix-like OS | ||
|
||
Prepare CMake, C++ compiler and other tool chain first. | ||
|
||
```shell | ||
# Way 1 (Recommended) | ||
./build.sh | ||
|
||
# Way 2 (Manually) | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
cd .. | ||
``` | ||
|
||
## On Windows (build with MSVC) | ||
+ CMake. ( Version > 3.6 ) | ||
+ C/C++ build toolchains. | ||
|
||
Make sure CMake and MSVC environment installed. | ||
## Command | ||
|
||
```shell | ||
# You need execute commands in `Developer PowerShell for VS` | ||
# So that path of `MSBuild.exe` can be located | ||
# You can also query path of `MSBuild.exe` by following command | ||
|
||
# Way 1 (Recommended) | ||
./build.ps1 | ||
|
||
# Way 2 (Manually) | ||
mkdir build | ||
cd build | ||
cmake .. | ||
msbuild ./ALL_BUILD.vcxproj | ||
cd .. | ||
``` | ||
|
||
You can also query path of `MSBuild.exe` by following command: | ||
```cmd | ||
reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath | ||
cmake --build . --config=Release | ||
``` | ||
|
||
# Components | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
|
||
set(TEST_SOURCES | ||
test_datetime.cpp | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
|
||
#include <datetime.hpp> | ||
#include <stdio.h> | ||
|
||
|