Files
jak-project/common/CMakeLists.txt
T
ManDude 0560136f08 Allow enum names to serve as types (using the enum's type) (#372)
* 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
2021-04-19 20:29:38 -04:00

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)