1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
openrw/rwlib/CMakeLists.txt
Filip Gawin a60bc20585 Fix misaligned memory(UB)
X86 is able to deal with
misaligned memory, but it can hurt perf.
Other arch like for example mips
is not able to digest it.

So in order of portability we should get
rid of this UB.
2018-01-13 00:49:17 +00:00

67 lines
1.5 KiB
CMake

###########################################################
## RWLIB
###########################################################
find_package(Boost REQUIRED)
SET(RWLIB_SOURCES
# GL stuff is only here temporarily, hoping to move it back to rwengine
source/gl/gl_core_3_3.c
source/gl/gl_core_3_3.h
source/gl/DrawBuffer.hpp
source/gl/DrawBuffer.cpp
source/gl/GeometryBuffer.hpp
source/gl/GeometryBuffer.cpp
source/gl/TextureData.hpp
source/gl/TextureData.cpp
source/rw/abort.cpp
source/rw/bit_cast.cpp
source/rw/filesystem.hpp
source/rw/forward.hpp
source/rw/types.hpp
source/rw/defines.hpp
source/platform/FileHandle.hpp
source/platform/FileIndex.hpp
source/platform/FileIndex.cpp
source/data/Clump.hpp
source/data/Clump.cpp
source/loaders/LoaderIMG.hpp
source/loaders/LoaderIMG.cpp
source/loaders/RWBinaryStream.hpp
source/loaders/LoaderDFF.hpp
source/loaders/LoaderDFF.cpp
source/loaders/LoaderSDT.hpp
source/loaders/LoaderSDT.cpp
source/loaders/LoaderTXD.hpp
source/loaders/LoaderTXD.cpp
)
add_library(rwlib
${RWLIB_SOURCES}
)
target_include_directories(rwlib
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/source"
)
target_include_directories(rwlib
SYSTEM
PRIVATE
${Boost_INCLUDE_DIRS}
)
target_link_libraries(rwlib
PUBLIC
glm::glm
openrw::interface
PRIVATE
OpenGL::GL
)
openrw_target_apply_options(TARGET rwlib)