Added first compiling version
This commit is contained in:
parent
26d8821665
commit
5453f173ca
11 changed files with 370 additions and 0 deletions
33
standalone/CMakeLists.txt
Normal file
33
standalone/CMakeLists.txt
Normal file
|
@ -0,0 +1,33 @@
|
|||
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
cmake_minimum_required(VERSION 3.14...3.22)
|
||||
|
||||
project(GlimpsesStandalone LANGUAGES CXX)
|
||||
|
||||
# --- Import tools ----
|
||||
|
||||
include(../cmake/tools.cmake)
|
||||
|
||||
# ---- Dependencies ----
|
||||
|
||||
include(../cmake/CPM.cmake)
|
||||
|
||||
CPMAddPackage(NAME Glimpses SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
|
||||
# ---- Create standalone executable ----
|
||||
|
||||
file(
|
||||
GLOB
|
||||
sources
|
||||
CONFIGURE_DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${sources})
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Glimpses")
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} Glimpses::Glimpses # Boost::System
|
||||
)
|
16
standalone/source/main.cpp
Normal file
16
standalone/source/main.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
// SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
#include <glimpses/glimpses.hpp>
|
||||
#include <glimpses/version.h>
|
||||
#include <iostream>
|
||||
|
||||
int
|
||||
main(int, char**)
|
||||
{
|
||||
glimpses::Glimpses glimpses;
|
||||
std::cout << "Hello, World." << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue