Skip to content

Commit

Permalink
CMake|GameKit: Fixed deployment when DE_ENABLE_SDK is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 23, 2021
1 parent 059e579 commit 887b878
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions doomsday/libs/gamekit/libs/GameConfig.cmake
Expand Up @@ -105,19 +105,21 @@ macro (deng_add_gamelib target)

# if (NOT APPLE)
install (TARGETS ${target}
EXPORT ${target}
#EXPORT ${target}
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${DE_INSTALL_LIB_DIR}
ARCHIVE DESTINATION ${DE_INSTALL_LIB_DIR}
#ARCHIVE DESTINATION ${DE_INSTALL_LIB_DIR}
COMPONENT libs
)
install (EXPORT ${target}
DESTINATION ${DE_INSTALL_CMAKE_DIR}/${target}
FILE ${target}-config.cmake
NAMESPACE GameKit::
COMPONENT sdk
)
# endif ()
if (DE_ENABLE_SDK)
install (TARGETS ${target} EXPORT ${target} ARCHIVE DESTINATION ${DE_INSTALL_LIB_DIR})
install (EXPORT ${target}
DESTINATION ${DE_INSTALL_CMAKE_DIR}/${target}
FILE ${target}-config.cmake
NAMESPACE GameKit::
COMPONENT sdk
)
endif ()
# set (_src)
# set (_script)
endmacro (deng_add_gamelib)

0 comments on commit 887b878

Please sign in to comment.