Skip to content

Commit b06d02c

Browse files
author
designerror
committed
first commit
0 parents  commit b06d02c

File tree

586 files changed

+179796
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

586 files changed

+179796
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*build*/
2+
.idea/
3+
*.swp

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Jakob Schr�ter <[email protected]>

CMakeLists.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
set(CMAKE_CXX_STANDARD 11)
3+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4+
5+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
6+
7+
option(BUILD_TESTS "Build tests" OFF)
8+
9+
include(cmake/HunterGate.cmake)
10+
11+
HunterGate(
12+
URL "https://github.com/ruslo/hunter/archive/v0.18.19.tar.gz"
13+
SHA1 "9a97237ffb3128631dfedcf2fb892c4346d791ce"
14+
)
15+
16+
project(gloox)
17+
18+
set(${PROJECT_NAME}_VERSION_MAJOR 1)
19+
set(${PROJECT_NAME}_VERSION_MINOR 0)
20+
set(${PROJECT_NAME}_VERSION_PATCH 20)
21+
set(${PROJECT_NAME}_VERSION_TWEAK 0)
22+
set(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH})
23+
set(${PROJECT_NAME}_VERSION_STRING "v${${PROJECT_NAME}_VERSION}")
24+
25+
hunter_add_package(OpenSSL)
26+
find_package(OpenSSL REQUIRED)
27+
28+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/)
29+
30+
file(GLOB GLOOX_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
31+
file(GLOB GLOOX_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")
32+
33+
add_library(gloox ${GLOOX_SOURCES})
34+
target_link_libraries(gloox OpenSSL::SSL OpenSSL::Crypto)
35+
36+
target_include_directories(${PROJECT_NAME} PUBLIC
37+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
38+
$<INSTALL_INTERFACE:include>
39+
)
40+
41+
install(TARGETS ${PROJECT_NAME}
42+
EXPORT ${PROJECT_NAME}-config
43+
RUNTIME DESTINATION bin
44+
ARCHIVE DESTINATION lib
45+
LIBRARY DESTINATION lib
46+
)
47+
48+
install(FILES GLOOX_HEADERS DESTINATION include/gloox)
49+
install(EXPORT ${PROJECT_NAME}-config DESTINATION cmake)

COPYING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
see the file LICENSE for the license of this distribution.
2+

0 commit comments

Comments
 (0)