summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2021-01-23 11:52:32 -0500
committerStephen Enders <smenders@gmail.com>2021-01-23 11:52:32 -0500
commita408a43cd105b89a8d44292e2ef69802a5660497 (patch)
treea70ce8c54f57c2f6f2a8603b9e45d352cc5bc083
parentf01537a8ff454b68b83574f16cb4e2ff244a4e8a (diff)
Move source files to src folder
We'll be making a few source files it'll be useful to have them organized at least somewhat from our non-src files
-rw-r--r--CMakeLists.txt6
-rwxr-xr-xreformat2
-rw-r--r--src/helper.cpp (renamed from helper.cpp)0
-rw-r--r--src/helper.hpp (renamed from helper.hpp)0
-rw-r--r--src/random.cpp (renamed from random.cpp)0
-rw-r--r--src/random.hpp (renamed from random.hpp)0
-rw-r--r--src/timedLatch.cpp (renamed from timedLatch.cpp)0
-rw-r--r--src/timedLatch.hpp (renamed from timedLatch.hpp)0
-rw-r--r--src/ur.cpp (renamed from ur.cpp)0
9 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 683ead2..9aa3965 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,11 @@ set(EXECUTABLE_NAME ur)
set(SFML_LIBRARIES sfml-system sfml-window sfml-graphics)
find_package(SFML 2.5 REQUIRED COMPONENTS system window graphics)
-add_executable(${EXECUTABLE_NAME} ur.cpp helper.cpp timedLatch.cpp random.cpp)
+add_executable(${EXECUTABLE_NAME}
+ src/ur.cpp
+ src/helper.cpp
+ src/timedLatch.cpp
+ src/random.cpp)
target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
diff --git a/reformat b/reformat
index 64a1a59..b5c76cd 100755
--- a/reformat
+++ b/reformat
@@ -1 +1 @@
-clang-format -i --style=Mozilla *.*pp
+clang-format -i --style=Mozilla src/*.*pp
diff --git a/helper.cpp b/src/helper.cpp
index 8d6f3ce..8d6f3ce 100644
--- a/helper.cpp
+++ b/src/helper.cpp
diff --git a/helper.hpp b/src/helper.hpp
index 3e7ffbb..3e7ffbb 100644
--- a/helper.hpp
+++ b/src/helper.hpp
diff --git a/random.cpp b/src/random.cpp
index e94b191..e94b191 100644
--- a/random.cpp
+++ b/src/random.cpp
diff --git a/random.hpp b/src/random.hpp
index e74267a..e74267a 100644
--- a/random.hpp
+++ b/src/random.hpp
diff --git a/timedLatch.cpp b/src/timedLatch.cpp
index 66714a5..66714a5 100644
--- a/timedLatch.cpp
+++ b/src/timedLatch.cpp
diff --git a/timedLatch.hpp b/src/timedLatch.hpp
index 77c7d49..77c7d49 100644
--- a/timedLatch.hpp
+++ b/src/timedLatch.hpp
diff --git a/ur.cpp b/src/ur.cpp
index dc61eb3..dc61eb3 100644
--- a/ur.cpp
+++ b/src/ur.cpp