Skip to content
Snippets Groups Projects
Commit 6c6e3eff authored by Philip Trettner's avatar Philip Trettner
Browse files

initial commit

parent 90fabd4f
Branches
No related tags found
No related merge requests found
# Style file for clang-format ( http://clang.llvm.org/docs/ClangFormatStyleOptions.html )
# Style is based on google's c++ coding style.
# see http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
BasedOnStyle: Google
#Language: Cpp
Standard: Cpp11
# 80 columns guideline
ColumnLimit: 150
PenaltyExcessCharacter: 1
PenaltyBreakString: 50
# Indentation and Braces
IndentWidth: 4
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
#BraceBreakingStyle: ???
BreakBeforeBinaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakBeforeBraces: Allman
BinPackParameters: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
IndentCaseLabels: false
# Spaces
DerivePointerAlignment: true
DerivePointerBinding: true
MaxEmptyLinesToKeep: 2
SpaceAfterControlStatementKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
#SpacesInSquareBrackets: false
UseTab: Never
ConstructorInitializerIndentWidth: 2
AccessModifierOffset: -4
# Comments
AlignTrailingComments: true
CommentPragmas: '!Api.*'
*.txt.user
.vscode/
bin/
\ No newline at end of file
[submodule "extern/typed-geometry"]
path = extern/typed-geometry
url = https://www.graphics.rwth-aachen.de:9000/ptrettner/typed-geometry.git
[submodule "extern/glow-extras"]
path = extern/glow-extras
url = https://www.graphics.rwth-aachen.de:9000/Glow/glow-extras.git
[submodule "extern/glow"]
path = extern/glow
url = https://www.graphics.rwth-aachen.de:9000/Glow/glow.git
[submodule "extern/glfw"]
path = extern/glfw
url = https://github.com/glfw/glfw.git
[submodule "extern/ctracer"]
path = extern/ctracer
url = https://www.graphics.rwth-aachen.de:9000/ptrettner/ctracer.git
[submodule "extern/imgui-lean"]
path = extern/imgui-lean
url = https://www.graphics.rwth-aachen.de:9000/ptrettner/imgui-lean.git
cmake_minimum_required(VERSION 3.8)
project(RtgLiveCoding)
# ===============================================
# Global settings
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# ===============================================
# Dependencies
# Add GLFW lib (with disabled spam)
option(GLFW_BUILD_EXAMPLES "" OFF)
option(GLFW_BUILD_TESTS "" OFF)
option(GLFW_BUILD_DOCS "" OFF)
option(GLFW_INSTALL "" OFF)
add_subdirectory(extern/glfw)
# tracing library
add_subdirectory(extern/ctracer)
# math library
add_subdirectory(extern/typed-geometry)
# graphics library
add_subdirectory(extern/glow)
# UI lib
add_subdirectory(extern/imgui-lean)
# graphics extras library
add_subdirectory(extern/glow-extras)
# ===============================================
# Live coding sessions
add_subdirectory(rtglive0)
ctracer @ 56d33f9b
Subproject commit 56d33f9b69854c7339e8ddd71fe81095ddd5cc41
Subproject commit 75294462b354d147aa5914c30e3005551cc04e4a
glow @ 07f89ff3
Subproject commit 07f89ff39a198aa740e6a373c9c3942c339a4028
glow-extras @ 4f3ad6e1
Subproject commit 4f3ad6e165d1ff6227e73734ebda9945bcb8c5b7
imgui-lean @ 54a1be6c
Subproject commit 54a1be6c4bc6efd1f8fb367c7499d83762f0b081
typed-geometry @ 67ad9a0b
Subproject commit 67ad9a0b5013299e7ef19de751ad5b72027cec1a
# ===============================================
# Configure executable
file(GLOB_RECURSE SOURCES
"src/*.cc"
"src/*.hh"
"data/*.*sh"
"data/*.glsl"
)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} PUBLIC
glow
glow-extras
typed-geometry
polymesh
ctracer
imgui
)
target_include_directories(${PROJECT_NAME} PUBLIC ".")
# ===============================================
# Compile flags
if (MSVC)
target_compile_options(${PROJECT_NAME} PUBLIC
/MP
)
else()
target_compile_options(${PROJECT_NAME} PUBLIC
-Wall
-Wno-unused-variable
)
target_link_libraries(${PROJECT_NAME} PUBLIC
-lstdc++fs
)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment