1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-03 00:59:47 +02:00
openrw/rwcore/CMakeLists.txt
Daniel Evans 4fd92a1549 Rename rwlib library to "core" to fit its new role
Also move up source files into the root directory, as there's nothing else in this directory
2018-08-09 20:28:24 +01:00

69 lines
1.4 KiB
CMake

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/filesystem.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
)
target_include_directories(rwcore
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
)
target_link_libraries(rwcore
PUBLIC
rwdep::boost
rwdep::glm
openrw::interface
PRIVATE
OpenGL::GL
)
openrw_target_apply_options(TARGET rwcore)
if(BUILD_SHARED_LIBS)
install(TARGETS rwcore
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
endif()