84 lines
2.9 KiB
CMake
84 lines
2.9 KiB
CMake
add_library(common STATIC
|
|
${CMAKE_SOURCE_DIR}/common/bspinfo.cc
|
|
${CMAKE_SOURCE_DIR}/common/bspfile.cc
|
|
${CMAKE_SOURCE_DIR}/common/bspfile_generic.cc
|
|
${CMAKE_SOURCE_DIR}/common/bspfile_q1.cc
|
|
${CMAKE_SOURCE_DIR}/common/bspfile_q2.cc
|
|
${CMAKE_SOURCE_DIR}/common/bsputils.cc
|
|
${CMAKE_SOURCE_DIR}/common/bspxfile.cc
|
|
${CMAKE_SOURCE_DIR}/common/cmdlib.cc
|
|
${CMAKE_SOURCE_DIR}/common/decompile.cc
|
|
${CMAKE_SOURCE_DIR}/common/entdata.cc
|
|
${CMAKE_SOURCE_DIR}/common/log.cc
|
|
${CMAKE_SOURCE_DIR}/common/mathlib.cc
|
|
${CMAKE_SOURCE_DIR}/common/parser.cc
|
|
${CMAKE_SOURCE_DIR}/common/qvec.cc
|
|
${CMAKE_SOURCE_DIR}/common/threads.cc
|
|
${CMAKE_SOURCE_DIR}/common/fs.cc
|
|
${CMAKE_SOURCE_DIR}/common/imglib.cc
|
|
${CMAKE_SOURCE_DIR}/common/settings.cc
|
|
${CMAKE_SOURCE_DIR}/common/prtfile.cc
|
|
${CMAKE_SOURCE_DIR}/common/debugger.natvis
|
|
${CMAKE_SOURCE_DIR}/include/common/aabb.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bitflags.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspinfo.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspfile.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspfile_generic.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspfile_q1.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspfile_q2.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bsputils.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/bspxfile.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/cmdlib.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/decompile.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/entdata.h
|
|
${CMAKE_SOURCE_DIR}/include/common/iterators.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/log.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/mathlib.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/parser.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/polylib.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/qvec.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/json.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/parallel.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/threads.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/fs.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/imglib.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/settings.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/prtfile.hh
|
|
${CMAKE_SOURCE_DIR}/include/common/vectorutils.hh
|
|
)
|
|
|
|
target_link_libraries(common ${CMAKE_THREAD_LIBS_INIT} TBB::tbb TBB::tbbmalloc fmt::fmt nlohmann_json::nlohmann_json)
|
|
|
|
target_precompile_headers(common INTERFACE
|
|
<filesystem>
|
|
<functional>
|
|
<array>
|
|
<any>
|
|
<bitset>
|
|
<cassert>
|
|
<cinttypes>
|
|
<cstdarg>
|
|
<iostream>
|
|
<fstream>
|
|
<list>
|
|
<mutex>
|
|
<vector>
|
|
<set>
|
|
<unordered_set>
|
|
<map>
|
|
<unordered_map>
|
|
<memory>
|
|
<optional>
|
|
<sstream>
|
|
<string>
|
|
<shared_mutex>
|
|
<type_traits>
|
|
<variant>
|
|
<fmt/core.h>
|
|
<tbb/scalable_allocator.h>
|
|
<tbb/task_group.h>
|
|
<tbb/task_group.h>
|
|
<tbb/parallel_for.h>
|
|
<tbb/parallel_for_each.h>
|
|
)
|