remove deployment code from CMake
This commit is contained in:
parent
a74117d95f
commit
e037bc3461
|
|
@ -18,13 +18,6 @@ endif()
|
|||
|
||||
qt_add_executable(Player ${SOURCE} ${HEADER})
|
||||
|
||||
if(MINGW)
|
||||
add_custom_command(TARGET Player POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Player> $<TARGET_RUNTIME_DLLS:Player>
|
||||
COMMAND_EXPAND_LISTS
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(Player PRIVATE Header)
|
||||
target_link_libraries(Player PRIVATE Common Engine)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,12 +9,5 @@ endif()
|
|||
|
||||
add_executable(Server ${SOURCE} ${HEADER})
|
||||
|
||||
if(MINGW)
|
||||
add_custom_command(TARGET Server POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Server> $<TARGET_RUNTIME_DLLS:Server>
|
||||
COMMAND_EXPAND_LISTS
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(Server PRIVATE Header)
|
||||
target_link_libraries(Server PRIVATE Engine)
|
||||
|
|
@ -20,20 +20,10 @@ endif()
|
|||
|
||||
qt_add_executable(Studio ${SOURCE} ${HEADER})
|
||||
|
||||
if(MINGW)
|
||||
add_custom_command(TARGET Studio POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Studio> $<TARGET_RUNTIME_DLLS:Studio>
|
||||
COMMAND_EXPAND_LISTS
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(Studio PRIVATE Header)
|
||||
target_link_libraries(Studio PRIVATE Common Engine)
|
||||
|
||||
set_target_properties(Studio PROPERTIES
|
||||
WIN32_EXECUTABLE ON
|
||||
MACOSX_BUNDLE ON
|
||||
)
|
||||
|
||||
install(TARGETS Studio
|
||||
RUNTIME_DEPENDENCIES)
|
||||
)
|
||||
|
|
@ -51,18 +51,4 @@ add_library(Engine STATIC
|
|||
find_package(pugixml REQUIRED)
|
||||
|
||||
target_include_directories(Engine PUBLIC ${BOOST_INCLUDE_DIRS} Header/)
|
||||
target_link_libraries(Engine PUBLIC ${BOOST_LIBRARIES} pugixml OgreBites Luau.Analysis Luau.Ast Luau.Compiler Luau.VM)
|
||||
|
||||
if(WIN32 OR MINGW)
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/Content/win32_plugins.cfg DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(RENAME ${CMAKE_BINARY_DIR}/win32_plugins.cfg ${CMAKE_BINARY_DIR}/plugins.cfg)
|
||||
file(COPY ${OGRE_PLUGIN_DIR}/ DESTINATION ${CMAKE_BINARY_DIR}/plugins)
|
||||
elseif(UNIX)
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/Content/linux_plugins.cfg DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(RENAME ${CMAKE_BINARY_DIR}/linux_plugins.cfg ${CMAKE_BINARY_DIR}/plugins.cfg)
|
||||
file(COPY ${OGRE_PLUGIN_DIR}/ DESTINATION ${CMAKE_BINARY_DIR}/plugins)
|
||||
endif()
|
||||
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/Content/RNR/ DESTINATION ${CMAKE_BINARY_DIR}/content)
|
||||
file(COPY ${OGRE_MEDIA_DIR}/Main/ DESTINATION ${CMAKE_BINARY_DIR}/shaders)
|
||||
file(COPY ${OGRE_MEDIA_DIR}/RTShaderLib/ DESTINATION ${CMAKE_BINARY_DIR}/shaders)
|
||||
target_link_libraries(Engine PUBLIC ${BOOST_LIBRARIES} pugixml OgreBites Luau.Analysis Luau.Ast Luau.Compiler Luau.VM)
|
||||
Loading…
Reference in New Issue