restructure
This commit is contained in:
parent
08d2c96590
commit
2c4198fbc6
5 changed files with 13 additions and 1 deletions
|
|
@ -10,6 +10,6 @@ add_subdirectory(external/milsko)
|
|||
add_subdirectory(engine)
|
||||
|
||||
install(
|
||||
FILES resource/logo.png resource/font.png resource/shadow.vs resource/shadow.fs
|
||||
FILES resource/logo.png resource/font.png
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/assaultfish
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,6 +4,16 @@ project(assaultfish)
|
|||
include(GNUInstallDirs)
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
macro(install_target name)
|
||||
install(
|
||||
TARGETS ${name}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
endmacro()
|
||||
|
||||
add_subdirectory(external/glad)
|
||||
|
||||
add_subdirectory(net)
|
||||
|
|
|
|||
|
|
@ -12,3 +12,5 @@ target_include_directories(gbnet PRIVATE ${ZLIB_INCLUDE_DIRS})
|
|||
target_link_options(gbnet PRIVATE ${ZLIB_LDFLAGS_OTHER})
|
||||
target_link_directories(gbnet PRIVATE ${ZLIB_LIBRARY_DIRS})
|
||||
target_link_libraries(gbnet PRIVATE ${ZLIB_LIBRARIES})
|
||||
|
||||
install_target(gbnet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue