2018-08-08 21:12:58 +02:00
|
|
|
add_library(rwcore
|
|
|
|
# GL stuff is only here temporarily, hoping to move it back to rwengine
|
|
|
|
gl/gl_core_3_3.c
|
|
|
|
gl/gl_core_3_3.h
|
|
|
|
gl/DrawBuffer.hpp
|
|
|
|
gl/DrawBuffer.cpp
|
|
|
|
gl/GeometryBuffer.hpp
|
|
|
|
gl/GeometryBuffer.cpp
|
|
|
|
gl/TextureData.hpp
|
|
|
|
gl/TextureData.cpp
|
|
|
|
|
|
|
|
rw/abort.cpp
|
|
|
|
rw/casts.hpp
|
|
|
|
rw/forward.hpp
|
|
|
|
rw/types.hpp
|
|
|
|
rw/debug.hpp
|
|
|
|
|
|
|
|
platform/FileHandle.hpp
|
|
|
|
platform/FileIndex.hpp
|
|
|
|
platform/FileIndex.cpp
|
|
|
|
|
|
|
|
data/Clump.hpp
|
|
|
|
data/Clump.cpp
|
|
|
|
|
|
|
|
fonts/FontMap.cpp
|
|
|
|
fonts/FontMap.hpp
|
|
|
|
fonts/FontMapGta3.cpp
|
|
|
|
fonts/FontMapGta3.hpp
|
|
|
|
fonts/GameTexts.cpp
|
|
|
|
fonts/GameTexts.hpp
|
|
|
|
fonts/Unicode.cpp
|
|
|
|
fonts/Unicode.hpp
|
|
|
|
|
|
|
|
loaders/LoaderIMG.hpp
|
|
|
|
loaders/LoaderIMG.cpp
|
|
|
|
loaders/RWBinaryStream.hpp
|
|
|
|
loaders/LoaderDFF.hpp
|
|
|
|
loaders/LoaderDFF.cpp
|
|
|
|
loaders/LoaderSDT.hpp
|
|
|
|
loaders/LoaderSDT.cpp
|
|
|
|
loaders/LoaderTXD.hpp
|
|
|
|
loaders/LoaderTXD.cpp
|
|
|
|
)
|
|
|
|
|
2018-08-16 19:42:58 +02:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(rwcore
|
|
|
|
PRIVATE
|
|
|
|
platform/RWWindows.hpp
|
|
|
|
platform/RWWindows.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2018-08-08 21:12:58 +02:00
|
|
|
target_include_directories(rwcore
|
|
|
|
PUBLIC
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(rwcore
|
|
|
|
PUBLIC
|
2018-06-24 00:43:06 +02:00
|
|
|
Boost::boost
|
|
|
|
glm::glm
|
2018-08-08 21:12:58 +02:00
|
|
|
openrw::interface
|
|
|
|
PRIVATE
|
|
|
|
OpenGL::GL
|
|
|
|
)
|
|
|
|
|
2018-11-20 06:51:34 +01:00
|
|
|
openrw_target_apply_options(TARGET rwcore
|
2018-11-27 19:56:25 +01:00
|
|
|
CORE
|
2018-11-20 06:51:34 +01:00
|
|
|
COVERAGE
|
|
|
|
COVERAGE_EXCEPT gl/gl_core_3_3.c gl/gl_core_3_3.h
|
|
|
|
)
|
2018-08-08 21:12:58 +02:00
|
|
|
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
install(TARGETS rwcore
|
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
|
|
)
|
|
|
|
endif()
|