2021-01-06 12:16:39 -05:00
|
|
|
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
|
2021-01-27 20:46:58 -05:00
|
|
|
util/dgo_util.cpp
|
|
|
|
util/DgoReader.cpp
|
2021-01-06 12:16:39 -05:00
|
|
|
util/DgoWriter.cpp
|
|
|
|
util/FileUtil.cpp
|
|
|
|
util/Timer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(common fmt)
|
|
|
|
|
2021-02-03 21:29:46 -05:00
|
|
|
if(WIN32)
|
2021-01-06 12:16:39 -05:00
|
|
|
target_link_libraries(common wsock32 ws2_32)
|
2021-02-03 21:29:46 -05:00
|
|
|
else()
|
2021-01-06 12:16:39 -05:00
|
|
|
target_link_libraries(common stdc++fs)
|
2021-02-03 21:29:46 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS common)
|