Skip to content

Commit a8b7626

Browse files
committed
Updated wsjcpp.yml
1 parent 4d7bf5b commit a8b7626

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

src.wsjcpp/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cmake_minimum_required(VERSION 3.0)
33

44
add_definitions(-DWSJCPP_VERSION="v0.0.1")
5-
add_definitions(-DWSJCPP_NAME="wsjcpp/wsjcpp-hashes")
5+
add_definitions(-DWSJCPP_NAME="wsjcpp-hashes")
66

77
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
88
set(MACOSX TRUE)
@@ -14,6 +14,9 @@ set (WSJCPP_LIBRARIES "")
1414
set (WSJCPP_INCLUDE_DIRS "")
1515
set (WSJCPP_SOURCES "")
1616

17+
find_package(Threads REQUIRED)
18+
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
19+
1720
# wsjcpp-core:v0.0.4
1821
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
1922
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")

unit-tests.wsjcpp/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
tmp/*
22
logs/*
33
unit-tests
4+
.wsjcpp/*
5+
6+
# Vim temp files
7+
*.swp
48

unit-tests.wsjcpp/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Automaticly generated by [email protected]
22
cmake_minimum_required(VERSION 3.0)
33

4-
project(unit-tests)
4+
project(unit-tests C CXX)
5+
add_definitions(-DWSJCPP_VERSION="ut-v0.0.1")
6+
add_definitions(-DWSJCPP_NAME="unit-tests-wsjcpp-hashes")
57

68
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
79
set(MACOSX TRUE)
@@ -14,6 +16,9 @@ set (WSJCPP_LIBRARIES "")
1416
set (WSJCPP_INCLUDE_DIRS "")
1517
set (WSJCPP_SOURCES "")
1618

19+
find_package(Threads REQUIRED)
20+
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
21+
1722
# wsjcpp-core:v0.0.4
1823
list (APPEND WSJCPP_INCLUDE_DIRS "../src.wsjcpp/wsjcpp_core/")
1924
list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
@@ -22,7 +27,7 @@ list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests.cpp")
2227
list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests.h")
2328
list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests_main.cpp")
2429

25-
# wsjcpp/wsjcpp-hashes:v0.0.1
30+
# wsjcpp-hashes:v0.0.1
2631
list (APPEND WSJCPP_INCLUDE_DIRS "../src")
2732
list (APPEND WSJCPP_SOURCES "../src/md5.cpp")
2833
list (APPEND WSJCPP_SOURCES "../src/md5.h")
@@ -38,6 +43,8 @@ list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_md5.cpp")
3843
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_sha1.h")
3944
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_sha1.cpp")
4045

46+
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.user-custom.txt)
47+
4148

4249
include_directories(${WSJCPP_INCLUDE_DIRS})
4350

@@ -52,3 +59,4 @@ install(
5259
/usr/bin
5360
)
5461

62+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## You can here write some custom includes
2+

wsjcpp.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,21 @@ dependencies:
3939
distribution:
4040
- source-file: src/md5.cpp
4141
target-file: md5.cpp
42-
sha1: "b9a2f18170280e20d001f3c8a41cb52f4c2428e8"
4342
type: "source-code"
4443
- source-file: src/md5.h
4544
target-file: md5.h
46-
sha1: "6792979b9334d1853d3562fa17ca1db7de7d4ee3"
4745
type: "source-code"
4846
- source-file: src/smallsha1.h
4947
target-file: smallsha1.h
50-
sha1: "44d204561dc64fdc0a603b02872f10cb6387e7c6"
5148
type: "source-code"
5249
- source-file: src/smallsha1.cpp
5350
target-file: smallsha1.cpp
54-
sha1: "4ce3e44851139bdd2acd6c6e9a440a9c75022322"
5551
type: "source-code"
5652
- source-file: src/wsjcpp_hashes.cpp
5753
target-file: wsjcpp_hashes.cpp
58-
sha1: "fbbd17bf3a73110c502676ee09e657711ce32bc1"
5954
type: "source-code"
6055
- source-file: src/wsjcpp_hashes.h
6156
target-file: wsjcpp_hashes.h
62-
sha1: "35197d7d82ffb756b3af11021ee94c4dc68ddd0a"
6357
type: "source-code"
6458

6559
unit-tests:

0 commit comments

Comments
 (0)