Skip to content

Commit 827b654

Browse files
committed
Prepare
1 parent 653199e commit 827b654

20 files changed

+1013
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
wsjcpp-hashes
2+
tmp/*
3+
14
# Prerequisites
25
*.d
36

CMakeLists.txt

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(wsjcpp-hashes)
4+
5+
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
6+
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-hashes_SOURCE_DIR})
9+
10+
# Sources
11+
12+
# include header dirs
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src")
14+
15+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_hashes.h")
16+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_hashes.cpp")
17+
list (APPEND WSJCPP_SOURCES "src/main.cpp")
18+
19+
include_directories(${WSJCPP_INCLUDE_DIRS})
20+
21+
add_executable ("wsjcpp-hashes" ${WSJCPP_SOURCES})
22+
23+
target_link_libraries("wsjcpp-hashes" -lpthread ${WSJCPP_LIBRARIES} )
24+
25+
install(
26+
TARGETS
27+
"wsjcpp-hashes"
28+
RUNTIME DESTINATION
29+
/usr/bin
30+
)

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# wsjcpp-hashes
1+
# wsjcpp-hashes
2+
3+
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-hashes.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-hashes) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-hashes.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-hashes/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-hashes.svg)](https://github.com/wsjcpp/wsjcpp-hashes/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-hashes.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-core/network/members)
4+

build_simple.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ ! -d tmp ]; then
4+
mkdir -p tmp
5+
fi
6+
7+
cd tmp
8+
cmake ..
9+
make

clean.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
rm -rf tmp
4+
rm -rf Makefile
5+
rm -f wsjcpp-hashes
6+

src.wsjcpp/.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src.wsjcpp/CMakeLists.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Automaticly generated by [email protected]
2+
3+
add_definitions(-DWSJCPP_VERSION="0.0.1")
4+
add_definitions(-DWSJCPP_NAME="wsjcpp-hashes")
5+
6+
# set(CMAKE_AUTOMOC ON)
7+
set(CMAKE_CXX_STANDARD 11)
8+
9+
set (WSJCPP_LIBRARIES "")
10+
set (WSJCPP_INCLUDE_DIRS "")
11+
set (WSJCPP_SOURCES "")
12+
13+
# wsjcpp-core
14+
list (APPEND WSJCPP_INCLUDE_DIRS "src.wsjcpp/wsjcpp-core/")
15+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-core/wsjcpp_core.h")
16+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-core/wsjcpp_core.cpp")
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
wsjcpp: 1.0.0
3+
cmake_cxx_standard: 11
4+
cmake_minimum_required: 3.0
5+
6+
name: wsjcpp/wsjcpp-core
7+
version: 0.0.1
8+
description: Basic Utils for wsjcpp
9+
issues: https://github.com/wsjcpp/wsjcpp-core/issues
10+
repositories:
11+
- "https://github.com/wsjcpp/wsjcpp-core"
12+
keywords:
13+
- c++
14+
- wsjcpp
15+
16+
authors:
17+
- name: Evgenii Sopov
18+
19+
20+
requirements:
21+
libs:
22+
- pthread
23+
24+
distribution:
25+
sources:
26+
- from: src/wsjcpp_core.cpp
27+
to: wsjcpp_core.cpp
28+
sha1: ""
29+
- from: src/wsjcpp_core.h
30+
to: wsjcpp_core.h
31+
sha1: ""
32+
33+
unit-tests:
34+
folder: unit-tests # default
35+
files:
36+
- unit-tests/src/main.cpp
37+
- unit-tests/src/unit_tests.h
38+
- unit-tests/src/unit_tests.cpp

0 commit comments

Comments
 (0)