remove unused thirdparty lib

This commit is contained in:
falsycat 2022-11-29 11:16:18 +09:00
parent 7e5ebabe94
commit b2e5ccba8c
3 changed files with 3 additions and 42 deletions

View File

@ -186,7 +186,6 @@ target_link_libraries(nf7
imgui
imnodes
implot
linalg.h
luajit
magic_enum
miniaudio

View File

@ -174,27 +174,6 @@ target_sources(implot
)
# ---- linalg.h ----
# repository: https://github.com/sgorsten/linalg
# license : Unlicense
FetchContent_Declare(
linalg_h
URL "https://github.com/sgorsten/linalg/archive/a3e87da35e32b781a4b6c01cdd5efbe7ae51c737.zip"
)
FetchContent_Populate(linalg_h)
add_library(linalg.h INTERFACE)
target_include_directories(linalg.h SYSTEM
INTERFACE . "${linalg_h_SOURCE_DIR}"
)
target_sources(linalg.h
INTERFACE
"${linalg_h_SOURCE_DIR}/linalg.h"
linalg.hh
)
# ---- luajit ----
# repository: https://github.com/LuaJIT/LuaJIT
# license : MIT
@ -212,6 +191,9 @@ include_luajit()
# ---- magic_enum ----
# repository: https://github.com/Neargye/magic_enum
# license : MIT
FetchContent_Declare(
magic_enum
URL "https://github.com/Neargye/magic_enum/archive/refs/tags/v0.8.1.zip"

20
thirdparty/linalg.hh vendored
View File

@ -1,20 +0,0 @@
#pragma once
#include <imgui.h>
#include <linalg.h>
namespace linalg {
using namespace aliases;
template <>
struct converter<float2, ImVec2> {
float2 operator() (const ImVec2& v) const { return {v.x, v.y}; }
};
template <>
struct converter<ImVec2, float2> {
ImVec2 operator() (const float2& v) const { return {v.x, v.y}; }
};
} // namespace linalg