commit 868bded53568b7f5acb0a2bdc0851b820bace93b Author: allem Date: Sat Jul 13 19:19:01 2019 -0400 initial; broken diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e608a77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,151 @@ +# Created by .ignore support plugin (hsz.mobi) +### C template +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb + +# Kernel Module Compile Results +*.mod* +*.cmd +.tmp_versions/ +modules.order +Module.symvers +Mkfile.old +dkms.conf +### CMake template +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/dictionaries +.idea/**/shelf + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# CMake +cmake-build-debug/ +cmake-build-release/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests +### C++ template +# 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 + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cc040f3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,13 @@ +[submodule "vendor/boost"] + path = vendor/boost + url = https://github.com/boostorg/boost.git +[submodule "vendor/glfw"] + path = vendor/glfw + url = https://github.com/glfw/glfw.git +[submodule "vendor/glad"] + path = vendor/glad + url = https://github.com/Dav1dde/glad.git + branch = c +[submodule "vendor/glm"] + path = vendor/glm + url = https://github.com/g-truc/glm.git diff --git a/.idea/cosets.iml b/.idea/cosets.iml new file mode 100644 index 0000000..f08604b --- /dev/null +++ b/.idea/cosets.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9bb8048 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..44442b6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7b1b3e1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.13) + +set(CMAKE_CXX_STANDARD 17) + +add_library(glad vendor/glad/src/glad.c cosets/src/main.cpp) +target_include_directories(glad PUBLIC vendor/glad/include) + +option(GLFW_BUILD_DOCS OFF) +option(GLFW_BUILD_EXAMPLES OFF) +option(GLFW_BUILD_TESTS OFF) +add_subdirectory(vendor/glfw) + +option(GLM_TEST_ENABLE OFF) +add_subdirectory(vendor/glm) + +set(BOOST_ROOT vendor/boost) +find_package(Boost REQUIRED COMPONENTS format) + +if (Boost_FOUND) + message('boost found!') +else() + message('boost not found!') +endif () + +add_subdirectory(cosets) diff --git a/cosets/CMakeLists.txt b/cosets/CMakeLists.txt new file mode 100644 index 0000000..aec3d41 --- /dev/null +++ b/cosets/CMakeLists.txt @@ -0,0 +1,10 @@ +project(cosets) + +add_executable(${PROJECT_NAME} + src/main.cpp) + +target_include_directories(${PROJECT_NAME} PRIVATE + include) + +target_link_libraries(${PROJECT_NAME} PRIVATE + glad glm glfw) diff --git a/cosets/include/util.h b/cosets/include/util.h new file mode 100644 index 0000000..360dd8a --- /dev/null +++ b/cosets/include/util.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +#include + +using namespace std; + +std::string greeting(std::string target) { + +} \ No newline at end of file diff --git a/cosets/src/main.cpp b/cosets/src/main.cpp new file mode 100644 index 0000000..af3849c --- /dev/null +++ b/cosets/src/main.cpp @@ -0,0 +1,9 @@ +#include + +using namespace std; + +int main(int argc, char *argv[]) { + cout << "hello, world!\n"; + + return 0; +} \ No newline at end of file diff --git a/vendor/boost b/vendor/boost new file mode 160000 index 0000000..db49c96 --- /dev/null +++ b/vendor/boost @@ -0,0 +1 @@ +Subproject commit db49c966ac7b5fcf5a2c441f0f77e374ed4ad1d8 diff --git a/vendor/glad b/vendor/glad new file mode 160000 index 0000000..5bf3eda --- /dev/null +++ b/vendor/glad @@ -0,0 +1 @@ +Subproject commit 5bf3eda6da606324999775b88a90ed572202be93 diff --git a/vendor/glfw b/vendor/glfw new file mode 160000 index 0000000..a4d910b --- /dev/null +++ b/vendor/glfw @@ -0,0 +1 @@ +Subproject commit a4d910b4a72f3a85d7be42ea2f91162cdfd28375 diff --git a/vendor/glm b/vendor/glm new file mode 160000 index 0000000..947527d --- /dev/null +++ b/vendor/glm @@ -0,0 +1 @@ +Subproject commit 947527d3ac1910e62d142c76480293fee460603d