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
|
2021-03-07 23:41:21 -05:00
|
|
|
goos/ReplUtils.cpp
|
2021-01-06 12:16:39 -05:00
|
|
|
log/log.cpp
|
2021-04-19 20:29:38 -04:00
|
|
|
type_system/defenum.cpp
|
2021-01-06 12:16:39 -05:00
|
|
|
type_system/deftype.cpp
|
|
|
|
type_system/Type.cpp
|
|
|
|
type_system/TypeFieldLookup.cpp
|
|
|
|
type_system/TypeSpec.cpp
|
|
|
|
type_system/TypeSystem.cpp
|
2021-05-18 21:25:29 -04:00
|
|
|
util/BitUtils.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
|
2021-03-13 16:10:39 -05:00
|
|
|
util/json_util.cpp
|
2021-01-06 12:16:39 -05:00
|
|
|
util/Timer.cpp
|
2021-05-13 21:05:05 -04:00
|
|
|
util/print_float.cpp
|
2021-01-06 12:16:39 -05:00
|
|
|
)
|
|
|
|
|
2021-03-07 23:41:21 -05:00
|
|
|
target_link_libraries(common fmt lzokay replxx)
|
2021-01-06 12:16:39 -05:00
|
|
|
|
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()
|
|
|
|
|
2021-03-01 11:15:24 -05:00
|
|
|
if(UNIX)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
|
|
|
elseif(WIN32)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2")
|
|
|
|
endif()
|
|
|
|
|
2021-02-03 21:29:46 -05:00
|
|
|
install(TARGETS common)
|