Added CMake and stuff for CLion

This commit is contained in:
Daniel 2023-07-28 09:42:46 +02:00
parent deb2a7de0b
commit 0ec4ac7cd0
7 changed files with 67 additions and 0 deletions

8
src/.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

4
src/.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>

8
src/.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/src.iml" filepath="$PROJECT_DIR$/.idea/src.iml" />
</modules>
</component>
</project>

8
src/.idea/src.iml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
src/.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

28
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,28 @@
# cmake_minimum_required(VERSION <specify CMake version here>)
project(src)
set(CMAKE_CXX_STANDARD 14)
include_directories(Engine/exceptions)
include_directories(Engine/exceptions/shaders)
include_directories(Engine/images)
include_directories(Engine/mesh)
include_directories(Engine/shaders)
include_directories(Engine/textures)
include_directories(Engine/util)
add_executable(src
Engine/exceptions/shaders/CreateProgramException.h
Engine/exceptions/shaders/ShaderCompileException.h
Engine/exceptions/IOException.h
Engine/images/awesomeface.png
Engine/images/container.jpg
Engine/images/wall.jpg
Engine/mesh/mesh.h
Engine/shaders/Enums.h
Engine/shaders/Shader.cpp
Engine/shaders/Shader.h
Engine/textures/Texture2D.h
Engine/util/stb_image.cpp
Engine/util/stb_image.h
Engine/main.cpp)