1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00
openrw/rwlib/CMakeLists.txt

81 lines
1.9 KiB
CMake
Raw Normal View History

###########################################################
## RWLIB
###########################################################
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
source/rw/casts.hpp
source/rw/filesystem.hpp
2017-10-26 00:58:59 +02:00
source/rw/forward.hpp
source/rw/types.hpp
2018-06-21 16:49:05 +02:00
source/rw/debug.hpp
2017-10-26 00:58:59 +02:00
source/platform/FileHandle.hpp
source/platform/FileIndex.hpp
source/platform/FileIndex.cpp
source/data/Clump.hpp
source/data/Clump.cpp
source/fonts/FontMap.cpp
source/fonts/FontMap.hpp
source/fonts/FontMapGta3.cpp
source/fonts/FontMapGta3.hpp
source/fonts/GameTexts.cpp
source/fonts/GameTexts.hpp
source/fonts/Unicode.cpp
source/fonts/Unicode.hpp
2017-10-26 00:58:59 +02:00
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
2017-10-26 00:58:59 +02:00
${RWLIB_SOURCES}
)
target_include_directories(rwlib
PUBLIC
2017-10-26 00:58:59 +02:00
"${CMAKE_CURRENT_SOURCE_DIR}/source"
)
target_link_libraries(rwlib
PUBLIC
rwdep::boost
rwdep::glm
openrw::interface
PRIVATE
OpenGL::GL
)
set_target_properties(rwlib
PROPERTIES
OUTPUT_NAME rw
)
openrw_target_apply_options(TARGET rwlib)
2018-06-04 23:45:08 +02:00
if(BUILD_SHARED_LIBS)
install(TARGETS rwlib
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
endif()