Skip to content

Commit 1152a07

Browse files
committed
Init
1 parent 2516664 commit 1152a07

22 files changed

+1184
-0
lines changed

.gitignore

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

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: cpp
2+
3+
branches:
4+
only:
5+
- master
6+
7+
dist: bionic
8+
9+
addons:
10+
apt:
11+
packages:
12+
- cmake
13+
- make
14+
- g++
15+
- pkg-config
16+
17+
# Build steps
18+
script:
19+
- ./build_simple.sh
20+
- cd unit-tests
21+
- ./build_simple.sh
22+
- ./unit-tests

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-arguments)
4+
5+
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
6+
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-arguments_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_arguments.h")
16+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_arguments.cpp")
17+
list (APPEND WSJCPP_SOURCES "src/main.cpp")
18+
19+
include_directories(${WSJCPP_INCLUDE_DIRS})
20+
21+
add_executable ("wsjcpp-arguments" ${WSJCPP_SOURCES})
22+
23+
target_link_libraries("wsjcpp-arguments" -lpthread ${WSJCPP_LIBRARIES} )
24+
25+
install(
26+
TARGETS
27+
"wsjcpp-arguments"
28+
RUNTIME DESTINATION
29+
/usr/bin
30+
)

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-core
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="v0.0.1")
4+
add_definitions(-DWSJCPP_NAME="wsjcpp-arguments")
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)