jak-project/common/CMakeLists.txt
water111 3331e9cd00
Replace spdlog (#185)
* remove spdlog

* clang format and fix windows

* add format shared

* windows sucks
2021-01-06 12:16:39 -05:00

28 lines
689 B
CMake

add_library(common
SHARED
cross_os_debug/xdbg.cpp
cross_sockets/xsocket.cpp
goos/Interpreter.cpp
goos/Object.cpp
goos/ParseHelpers.cpp
goos/PrettyPrinter.cpp
goos/Reader.cpp
goos/TextDB.cpp
log/log.cpp
type_system/deftype.cpp
type_system/Type.cpp
type_system/TypeFieldLookup.cpp
type_system/TypeSpec.cpp
type_system/TypeSystem.cpp
util/DgoWriter.cpp
util/FileUtil.cpp
util/Timer.cpp
)
target_link_libraries(common fmt)
IF(WIN32)
target_link_libraries(common wsock32 ws2_32)
ELSE()
target_link_libraries(common stdc++fs)
ENDIF()