minecraft-pi-reborn/launcher/CMakeLists.txt

26 lines
888 B
CMake
Raw Normal View History

2021-01-27 21:26:19 +00:00
project(launcher)
2021-06-17 21:32:24 +00:00
# Launcher
if(BUILD_NATIVE_COMPONENTS)
add_executable(launcher src/bootstrap.c src/ldconfig.cpp)
if(MCPI_SERVER_MODE)
target_sources(launcher PRIVATE src/server/launcher.c)
else()
target_sources(launcher PRIVATE src/client/launcher.cpp)
endif()
target_link_libraries(launcher reborn-headers)
# Install
install(TARGETS launcher DESTINATION "${MCPI_INSTALL_DIR}")
2021-12-18 01:01:29 +00:00
install_symlink("../${MCPI_INSTALL_DIR}/launcher" "bin/${MCPI_VARIANT_NAME}")
2021-06-17 21:32:24 +00:00
if(NOT MCPI_SERVER_MODE)
install(DIRECTORY "client-data/" DESTINATION ".")
2022-03-10 04:29:37 +00:00
else()
set(ICON_PATH "share/icons/hicolor/scalable/apps")
install(
FILES "client-data/${ICON_PATH}/com.thebrokenrail.MCPIReborn.png"
DESTINATION "${ICON_PATH}"
RENAME "com.thebrokenrail.MCPIRebornServer.png"
)
2021-06-17 21:32:24 +00:00
endif()
endif()