Skip to content

Commit

Permalink
POC: Add repo initialisation
Browse files Browse the repository at this point in the history
Minor
  • Loading branch information
TTENSHII committed Sep 19, 2023
1 parent 3ad782c commit 78e7cd8
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Misc
build/
.idea/
.vscode/
.vs/
*.ini
!dllTest/*
47 changes: 47 additions & 0 deletions src/poc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
cmake_minimum_required(VERSION 3.27)

set(PROJECT_NAME poc)

project(
${PROJECT_NAME}
VERSION 1.0.0
LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 20)

add_executable(
${PROJECT_NAME}
)

if(MSVC)
target_compile_options(
${PROJECT_NAME}
PRIVATE
/W4
)
else()
target_compile_options(
${PROJECT_NAME}
PRIVATE
-Wall -Wextra
)
endif()

add_subdirectory(src)

if (WIN32)
add_custom_command(
TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:${PROJECT_NAME}>
${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.exe
)
else()
add_custom_command(
TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:${PROJECT_NAME}>
${CMAKE_SOURCE_DIR}/${PROJECT_NAME}
)
endif()
14 changes: 14 additions & 0 deletions src/poc/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.27)

target_include_directories(
${PROJECT_NAME}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)

target_sources(
${PROJECT_NAME}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Registry.cpp
)
9 changes: 9 additions & 0 deletions src/poc/src/Registry.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "Registry.hpp"

Registry::Registry()
{
}

Registry::~Registry()
{
}
5 changes: 5 additions & 0 deletions src/poc/src/Registry.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Registry {
public:
Registry();
~Registry();
};
7 changes: 7 additions & 0 deletions src/poc/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <iostream>

int main()
{
std::cout << "RTYPE POC" << std::endl;
return 0;
}

0 comments on commit 78e7cd8

Please sign in to comment.