2016-04-07 02:13:46 +02:00
|
|
|
###########################################################
|
|
|
|
## RWLIB
|
|
|
|
###########################################################
|
2016-08-04 02:09:47 +02:00
|
|
|
|
2017-10-29 23:50:59 +01:00
|
|
|
find_package(Boost REQUIRED)
|
2016-08-04 02:09:47 +02:00
|
|
|
|
2016-04-07 02:13:46 +02:00
|
|
|
SET(RWLIB_SOURCES
|
2017-10-26 00:58:59 +02:00
|
|
|
# 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
|
2017-10-29 23:50:59 +01:00
|
|
|
source/rw/filesystem.hpp
|
2017-10-26 00:58:59 +02:00
|
|
|
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
|
|
|
|
)
|
2016-04-07 02:13:46 +02:00
|
|
|
|
|
|
|
add_library(rwlib
|
2017-10-26 00:58:59 +02:00
|
|
|
${RWLIB_SOURCES}
|
|
|
|
)
|
2016-04-07 02:13:46 +02:00
|
|
|
|
2017-10-26 00:44:45 +02:00
|
|
|
target_include_directories(rwlib
|
|
|
|
PUBLIC
|
2017-10-26 00:58:59 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/source"
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2016-04-07 02:13:46 +02:00
|
|
|
|
|
|
|
target_include_directories(rwlib
|
2017-10-26 00:44:45 +02:00
|
|
|
SYSTEM
|
2017-10-29 23:50:59 +01:00
|
|
|
PRIVATE
|
2017-10-26 01:47:29 +02:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2016-04-07 02:13:46 +02:00
|
|
|
|
|
|
|
target_link_libraries(rwlib
|
2017-10-26 00:44:45 +02:00
|
|
|
PUBLIC
|
2017-11-05 02:31:37 +01:00
|
|
|
glm::glm
|
2017-10-26 00:44:45 +02:00
|
|
|
openrw::interface
|
|
|
|
PRIVATE
|
2017-12-11 22:55:33 +01:00
|
|
|
OpenGL::GL
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2017-10-29 07:37:18 +01:00
|
|
|
|
|
|
|
openrw_target_apply_options(TARGET rwlib)
|