浏览代码

Move CMakeLists

Kajetan Johannes Hammerle 3 月之前
父节点
当前提交
51059cde93
共有 2 个文件被更改,包括 53 次插入53 次删除
  1. 52 52
      CMakeLists.txt
  2. 1 1
      tasks

+ 52 - 52
src/CMakeLists.txt → CMakeLists.txt

@@ -4,67 +4,67 @@ project(core)
 set(CMAKE_CXX_STANDARD 20)
 
 set(SRC
-    "utils/Logger.cpp"
-    "utils/Utility.cpp"
-    "utils/Error.cpp"
-    "utils/New.cpp"
-    "utils/Buffer.cpp"
-    "utils/Clock.cpp"
-    "utils/Random.cpp"
-    "data/BitArray.cpp"
-    "math/Math.cpp"
-    "math/Vector.cpp"
-    "math/Quaternion.cpp"
-    "math/Matrix.cpp"
-    "math/Box.cpp"
-    "math/Plane.cpp"
-    "math/Frustum.cpp"
-    "math/View.cpp"
-    "thread/Thread.cpp"
-    "io/FileReader.cpp"
+    "src/utils/Logger.cpp"
+    "src/utils/Utility.cpp"
+    "src/utils/Error.cpp"
+    "src/utils/New.cpp"
+    "src/utils/Buffer.cpp"
+    "src/utils/Clock.cpp"
+    "src/utils/Random.cpp"
+    "src/data/BitArray.cpp"
+    "src/math/Math.cpp"
+    "src/math/Vector.cpp"
+    "src/math/Quaternion.cpp"
+    "src/math/Matrix.cpp"
+    "src/math/Box.cpp"
+    "src/math/Plane.cpp"
+    "src/math/Frustum.cpp"
+    "src/math/View.cpp"
+    "src/thread/Thread.cpp"
+    "src/io/FileReader.cpp"
 )
 
 set(SRC_TESTS
-    "test/Main.cpp"
-    "test/Test.cpp"
-    "tests/ArrayTests.cpp"
-    "tests/ArrayStringTests.cpp"
-    "tests/UtilityTests.cpp"
-    "tests/ArrayListTests.cpp"
-    "tests/BitArrayTests.cpp"
-    "tests/MathTests.cpp"
-    "tests/ListTests.cpp"
-    "tests/LinkedListTests.cpp"
-    "tests/UniquePointerTests.cpp"
-    "tests/HashMapTests.cpp"
-    "tests/ProbingHashMapTests.cpp"
-    "tests/StackTests.cpp"
-    "tests/RingBufferTests.cpp"
-    "tests/ComponentsTests.cpp"
-    "tests/VectorTests.cpp"
-    "tests/QuaternionTests.cpp"
-    "tests/MatrixTests.cpp"
-    "tests/BoxTests.cpp"
-    "tests/BufferedValueTests.cpp"
-    "tests/PlaneTests.cpp"
-    "tests/FrustumTests.cpp"
-    "tests/ViewTests.cpp"
-    "tests/MatrixStackTests.cpp"
-    "tests/ColorTests.cpp"
-    "tests/BufferTests.cpp"
-    "tests/ClockTests.cpp"
-    "tests/RandomTests.cpp"
-    "tests/ThreadTests.cpp"
-    "tests/FileReaderTests.cpp"
+    "src/test/Main.cpp"
+    "src/test/Test.cpp"
+    "src/tests/ArrayTests.cpp"
+    "src/tests/ArrayStringTests.cpp"
+    "src/tests/UtilityTests.cpp"
+    "src/tests/ArrayListTests.cpp"
+    "src/tests/BitArrayTests.cpp"
+    "src/tests/MathTests.cpp"
+    "src/tests/ListTests.cpp"
+    "src/tests/LinkedListTests.cpp"
+    "src/tests/UniquePointerTests.cpp"
+    "src/tests/HashMapTests.cpp"
+    "src/tests/ProbingHashMapTests.cpp"
+    "src/tests/StackTests.cpp"
+    "src/tests/RingBufferTests.cpp"
+    "src/tests/ComponentsTests.cpp"
+    "src/tests/VectorTests.cpp"
+    "src/tests/QuaternionTests.cpp"
+    "src/tests/MatrixTests.cpp"
+    "src/tests/BoxTests.cpp"
+    "src/tests/BufferedValueTests.cpp"
+    "src/tests/PlaneTests.cpp"
+    "src/tests/FrustumTests.cpp"
+    "src/tests/ViewTests.cpp"
+    "src/tests/MatrixStackTests.cpp"
+    "src/tests/ColorTests.cpp"
+    "src/tests/BufferTests.cpp"
+    "src/tests/ClockTests.cpp"
+    "src/tests/RandomTests.cpp"
+    "src/tests/ThreadTests.cpp"
+    "src/tests/FileReaderTests.cpp"
 )
 
 set(SRC_PERFORMANCE
-    "performance/Main.cpp"
-    "test/Test.cpp"
+    "src/performance/Main.cpp"
+    "src/test/Test.cpp"
 )
 
 add_library(core STATIC ${SRC})
-target_include_directories(core PUBLIC ".")
+target_include_directories(core PUBLIC "src")
 target_compile_options(core PUBLIC
     -fdiagnostics-color=always
     -fno-exceptions

+ 1 - 1
tasks

@@ -59,7 +59,7 @@ fi
 # task execution
 if $build; then
     if [ ! -e build ]; then 
-        cmake -B build -S src -G Ninja
+        cmake -B build -S . -G Ninja
     fi
     ninja -C build
 fi