jak-project/common/CMakeLists.txt
bb010g 2436a8a541
Nixpkgs support (#228)
* Use env shebangs

* CMake cleanup, install() invocations, & CTest

`ctest` & the `test` target work now

* Nixpkgs support
2021-02-03 21:29:46 -05:00

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)