-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96ab0d9
commit a42d48f
Showing
24 changed files
with
290 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,56 @@ | ||
*.cmake | ||
generator/Makefile | ||
engine/Makefile | ||
common/Makefile | ||
generator/CMakeCache.txt | ||
engine/CMakeCache.txt | ||
common/CMakeCache.txt | ||
generator/CMakeFiles/* | ||
engine/CMakeFiles/* | ||
common/CMakeFiles/* | ||
.idea/* | ||
.vscode/* | ||
generator/generator | ||
engine/engine | ||
common/common | ||
build | ||
CMakeCache.txt | ||
compile_commands.json | ||
CMakeFiles/* | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
*.bin | ||
|
||
|
||
# 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 | ||
|
||
.vscode | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
# Project Name | ||
project(cg) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(OpenGL_GL_PREFERENCE "GLVND") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") | ||
|
||
add_subdirectory(common) | ||
add_subdirectory(generator) | ||
add_subdirectory(engine) | ||
target_include_directories(common PUBLIC common/include) | ||
target_include_directories(generator PUBLIC generator/include) | ||
target_include_directories(engine PUBLIC engine/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
# CMAKE generated file: DO NOT EDIT! | ||
# Generated by "Unix Makefiles" Generator, CMake Version 3.28 | ||
|
||
# Default target executed when no arguments are given to make. | ||
default_target: all | ||
.PHONY : default_target | ||
|
||
# Allow only one "make -f Makefile2" at a time, but pass parallelism. | ||
.NOTPARALLEL: | ||
|
||
#============================================================================= | ||
# Special targets provided by cmake. | ||
|
||
# Disable implicit rules so canonical targets will work. | ||
.SUFFIXES: | ||
|
||
# Disable VCS-based implicit rules. | ||
% : %,v | ||
|
||
# Disable VCS-based implicit rules. | ||
% : RCS/% | ||
|
||
# Disable VCS-based implicit rules. | ||
% : RCS/%,v | ||
|
||
# Disable VCS-based implicit rules. | ||
% : SCCS/s.% | ||
|
||
# Disable VCS-based implicit rules. | ||
% : s.% | ||
|
||
.SUFFIXES: .hpux_make_needs_suffix_list | ||
|
||
# Command-line flag to silence nested $(MAKE). | ||
$(VERBOSE)MAKESILENT = -s | ||
|
||
#Suppress display of executed commands. | ||
$(VERBOSE).SILENT: | ||
|
||
# A target that is always out of date. | ||
cmake_force: | ||
.PHONY : cmake_force | ||
|
||
#============================================================================= | ||
# Set environment variables for the build. | ||
|
||
# The shell in which to execute make rules. | ||
SHELL = /bin/sh | ||
|
||
# The CMake executable. | ||
CMAKE_COMMAND = /usr/bin/cmake | ||
|
||
# The command to remove a file. | ||
RM = /usr/bin/cmake -E rm -f | ||
|
||
# Escaping for special characters. | ||
EQUALS = = | ||
|
||
# The top-level source directory on which CMake was run. | ||
CMAKE_SOURCE_DIR = /home/mario/CG-Project | ||
|
||
# The top-level build directory on which CMake was run. | ||
CMAKE_BINARY_DIR = /home/mario/CG-Project | ||
|
||
#============================================================================= | ||
# Targets provided globally by CMake. | ||
|
||
# Special rule for the target edit_cache | ||
edit_cache: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." | ||
/usr/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
.PHONY : edit_cache | ||
|
||
# Special rule for the target edit_cache | ||
edit_cache/fast: edit_cache | ||
.PHONY : edit_cache/fast | ||
|
||
# Special rule for the target rebuild_cache | ||
rebuild_cache: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." | ||
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
.PHONY : rebuild_cache | ||
|
||
# Special rule for the target rebuild_cache | ||
rebuild_cache/fast: rebuild_cache | ||
.PHONY : rebuild_cache/fast | ||
|
||
# The main all target | ||
all: cmake_check_build_system | ||
$(CMAKE_COMMAND) -E cmake_progress_start /home/mario/CG-Project/CMakeFiles /home/mario/CG-Project//CMakeFiles/progress.marks | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all | ||
$(CMAKE_COMMAND) -E cmake_progress_start /home/mario/CG-Project/CMakeFiles 0 | ||
.PHONY : all | ||
|
||
# The main clean target | ||
clean: | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean | ||
.PHONY : clean | ||
|
||
# The main clean target | ||
clean/fast: clean | ||
.PHONY : clean/fast | ||
|
||
# Prepare targets for installation. | ||
preinstall: all | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall | ||
.PHONY : preinstall | ||
|
||
# Prepare targets for installation. | ||
preinstall/fast: | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall | ||
.PHONY : preinstall/fast | ||
|
||
# clear depends | ||
depend: | ||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 | ||
.PHONY : depend | ||
|
||
#============================================================================= | ||
# Target rules for targets named common | ||
|
||
# Build rule for target. | ||
common: cmake_check_build_system | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 common | ||
.PHONY : common | ||
|
||
# fast build rule for target. | ||
common/fast: | ||
$(MAKE) $(MAKESILENT) -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build | ||
.PHONY : common/fast | ||
|
||
#============================================================================= | ||
# Target rules for targets named generator | ||
|
||
# Build rule for target. | ||
generator: cmake_check_build_system | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 generator | ||
.PHONY : generator | ||
|
||
# fast build rule for target. | ||
generator/fast: | ||
$(MAKE) $(MAKESILENT) -f generator/CMakeFiles/generator.dir/build.make generator/CMakeFiles/generator.dir/build | ||
.PHONY : generator/fast | ||
|
||
#============================================================================= | ||
# Target rules for targets named engine | ||
|
||
# Build rule for target. | ||
engine: cmake_check_build_system | ||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 engine | ||
.PHONY : engine | ||
|
||
# fast build rule for target. | ||
engine/fast: | ||
$(MAKE) $(MAKESILENT) -f engine/CMakeFiles/engine.dir/build.make engine/CMakeFiles/engine.dir/build | ||
.PHONY : engine/fast | ||
|
||
# Help Target | ||
help: | ||
@echo "The following are some of the valid targets for this Makefile:" | ||
@echo "... all (the default if no target is provided)" | ||
@echo "... clean" | ||
@echo "... depend" | ||
@echo "... edit_cache" | ||
@echo "... rebuild_cache" | ||
@echo "... common" | ||
@echo "... engine" | ||
@echo "... generator" | ||
.PHONY : help | ||
|
||
|
||
|
||
#============================================================================= | ||
# Special targets to cleanup operation of make. | ||
|
||
# Special rule to run CMake to check the build system integrity. | ||
# No rule that depends on this can have commands that come from listfiles | ||
# because they might be regenerated. | ||
cmake_check_build_system: | ||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
.PHONY : cmake_check_build_system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
# Project Name | ||
project(common) | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
file(GLOB SRC_FILES src/*.cpp) | ||
add_library(${PROJECT_NAME} ${SRC_FILES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.