set(PLUGLIB_SRC
    "aaplane.h"
    "always.h"
    "BITTYPE.h"
    "chunkio.cpp"
    "chunkio.h"
    "errclass.h"
    "EULER.cpp"
    "EULER.h"
    "hashcalc.h"
    "iostruct.h"
    "jshell.cpp"
    "matrix3d.cpp"
    "matrix3d.h"
    "matrix4.cpp"
    "matrix4.h"
    "nodefilt.cpp"
    "nodefilt.h"
    "nodelist.cpp"
    "nodelist.h"
    "noinit.h"
    "PROGRESS.h"
    "rawfile.cpp"
    "rawfile.h"
    "realcrc.cpp"
    "realcrc.h"
    "uarray.h"
    "Vector.cpp"
    "Vector.h"
    "vector2.h"
    "vector3.h"
    "vector3i.h"
    "vector4.h"
    "visualc.h"
    "w3dquat.cpp"
    "w3dquat.h"
    "win.h"
    "wwfile.h"
    "wwmath.cpp"
    "wwmath.h"
    "WWmatrix3.cpp"
    "WWmatrix3.h"
)

add_library(core_pluglib STATIC)
set_target_properties(core_pluglib PROPERTIES OUTPUT_NAME pluglib)

target_sources(core_pluglib PRIVATE ${PLUGLIB_SRC})

target_link_libraries(core_pluglib PUBLIC
    corei_always
    deps_maxsdk # Must stay below corei_always so that max_undef.h is force included after Precompiled/BasePrecomp.h
)
