2016-04-07 02:13:46 +02:00
|
|
|
###########################################################
|
|
|
|
## RWLIB
|
|
|
|
###########################################################
|
2016-08-04 02:09:47 +02:00
|
|
|
|
|
|
|
find_package(Boost COMPONENTS filesystem system REQUIRED)
|
|
|
|
|
2016-04-07 02:13:46 +02:00
|
|
|
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/types.hpp"
|
2016-04-09 02:28:33 +02:00
|
|
|
"source/rw/defines.hpp"
|
2016-04-07 02:13:46 +02:00
|
|
|
|
|
|
|
"source/platform/FileHandle.hpp"
|
|
|
|
"source/platform/FileIndex.hpp"
|
|
|
|
"source/platform/FileIndex.cpp"
|
|
|
|
|
|
|
|
"source/data/ResourceHandle.hpp"
|
|
|
|
"source/data/Model.hpp"
|
|
|
|
"source/data/Model.cpp"
|
|
|
|
|
|
|
|
"source/loaders/LoaderIMG.hpp"
|
|
|
|
"source/loaders/LoaderIMG.cpp"
|
|
|
|
"source/loaders/RWBinaryStream.hpp"
|
|
|
|
"source/loaders/LoaderDFF.hpp"
|
|
|
|
"source/loaders/LoaderDFF.cpp"
|
2016-05-30 23:06:28 +02:00
|
|
|
"source/loaders/LoaderSDT.hpp"
|
|
|
|
"source/loaders/LoaderSDT.cpp"
|
2016-04-07 02:13:46 +02:00
|
|
|
"source/loaders/LoaderTXD.hpp"
|
|
|
|
"source/loaders/LoaderTXD.cpp"
|
|
|
|
|
|
|
|
"source/job/WorkContext.hpp"
|
|
|
|
"source/job/WorkContext.cpp"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(rwlib
|
|
|
|
|
|
|
|
${RWLIB_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2016-08-04 02:09:47 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/source"
|
|
|
|
"${Boost_INCLUDE_DIRS}")
|
2016-04-07 02:13:46 +02:00
|
|
|
|
|
|
|
target_include_directories(rwlib
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/source")
|
|
|
|
|
|
|
|
target_link_libraries(rwlib
|
|
|
|
${OPENGL_LIBRARIES}
|
2016-08-04 02:09:47 +02:00
|
|
|
${OPENRW_PLATFORM_LIBS}
|
|
|
|
${Boost_LIBRARIES})
|