jak-project/common/CMakeLists.txt

33 lines
768 B
CMake
Raw Normal View History

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/dgo_util.cpp
util/DgoReader.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()
install(TARGETS common)