mirror of
https://github.com/open-goal/jak-project
synced 2026-06-21 08:41:48 -04:00
0560136f08
* Allow enum names to serve as types (using the enum's type) * Formatting * add doc to `get_enum_type_name` * Ban enum forward-declaring, and remove unneeded checks
42 lines
1000 B
CMake
42 lines
1000 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
|
|
goos/ReplUtils.cpp
|
|
log/log.cpp
|
|
type_system/defenum.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/json_util.cpp
|
|
util/Timer.cpp
|
|
)
|
|
|
|
target_link_libraries(common fmt lzokay replxx)
|
|
|
|
if(WIN32)
|
|
target_link_libraries(common wsock32 ws2_32)
|
|
else()
|
|
target_link_libraries(common stdc++fs)
|
|
endif()
|
|
|
|
if(UNIX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
|
elseif(WIN32)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2")
|
|
endif()
|
|
|
|
install(TARGETS common)
|