Move everything in the client/ subdirectory

This commit is contained in:
Guillaume Meunier
2022-11-12 19:35:14 +01:00
parent ae31d7727c
commit 019682cefd
95 changed files with 323 additions and 245 deletions
+16
View File
@@ -0,0 +1,16 @@
execute_process(COMMAND git describe --always OUTPUT_VARIABLE GIT_VERSION)
string(STRIP ${GIT_VERSION} GIT_VERSION)
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/version.cpp
COMMAND ${CMAKE_COMMAND}
-D GIT_EXECUTABLE=${GIT_EXECUTABLE}
-D INPUT_FILE=${CMAKE_SOURCE_DIR}/common/version.cpp.in
-D OUTPUT_FILE=${CMAKE_BINARY_DIR}/version.cpp
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
)
file(GLOB LOCAL_SOURCE CONFIGURE_DEPENDS "*.cpp")
add_library(wivrn-common STATIC ${CMAKE_BINARY_DIR}/version.cpp ${LOCAL_SOURCES})
target_include_directories(wivrn-common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+22
View File
@@ -0,0 +1,22 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "version.h"
const char git_version[] = "@GIT_VERSION@";
+3
View File
@@ -0,0 +1,3 @@
#pragma once
extern const char git_version[];