mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
2436a8a541
* Use env shebangs * CMake cleanup, install() invocations, & CTest `ctest` & the `test` target work now * Nixpkgs support
33 lines
768 B
CMake
33 lines
768 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/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)
|