1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

rwgame: split rwgame in librwgame and rwgame

This commit is contained in:
Anonymous Maarten 2018-12-19 01:16:27 +01:00
parent c3573c8070
commit 4b5107719f

View File

@ -1,11 +1,9 @@
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY)
set(RWGAME_SOURCES add_library(librwgame STATIC
GitSHA1.h GitSHA1.h
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
main.cpp
RWConfig.inc RWConfig.inc
RWConfig.hpp RWConfig.hpp
RWConfig.cpp RWConfig.cpp
@ -46,20 +44,36 @@ set(RWGAME_SOURCES
states/BenchmarkState.cpp states/BenchmarkState.cpp
) )
add_executable(rwgame openrw_target_apply_options(
${RWGAME_SOURCES} TARGET librwgame
COVERAGE
) )
target_include_directories(rwgame set_target_properties(librwgame
PROPERTIES
OUTPUT_NAME "rwgame"
PREFIX "lib"
)
target_include_directories(librwgame
PUBLIC PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"
) )
target_link_libraries(librwgame
PUBLIC
openrw::interface
rwengine
Boost::program_options
SDL2::SDL2
)
add_executable(rwgame
main.cpp
)
target_link_libraries(rwgame target_link_libraries(rwgame
PRIVATE PRIVATE
rwengine librwgame
Boost::program_options
SDL2::SDL2
) )
openrw_target_apply_options( openrw_target_apply_options(