|
@@ -4,67 +4,67 @@ project(core)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
set(SRC
|
|
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
|
|
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
|
|
set(SRC_PERFORMANCE
|
|
- "performance/Main.cpp"
|
|
|
|
- "test/Test.cpp"
|
|
|
|
|
|
+ "src/performance/Main.cpp"
|
|
|
|
+ "src/test/Test.cpp"
|
|
)
|
|
)
|
|
|
|
|
|
add_library(core STATIC ${SRC})
|
|
add_library(core STATIC ${SRC})
|
|
-target_include_directories(core PUBLIC ".")
|
|
|
|
|
|
+target_include_directories(core PUBLIC "src")
|
|
target_compile_options(core PUBLIC
|
|
target_compile_options(core PUBLIC
|
|
-fdiagnostics-color=always
|
|
-fdiagnostics-color=always
|
|
-fno-exceptions
|
|
-fno-exceptions
|