TheBrokenRail
d0c2b98ca6
Some checks failed
minecraft-pi-reborn/pipeline/head There was a failure building this commit
19 lines
621 B
CMake
19 lines
621 B
CMake
project(launcher)
|
|
|
|
# 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}")
|
|
install_symlink("../../${MCPI_INSTALL_DIR}/launcher" "usr/bin/${MCPI_VARIANT_NAME}")
|
|
if(NOT MCPI_SERVER_MODE)
|
|
install(DIRECTORY "client-data/" DESTINATION ".")
|
|
endif()
|
|
endif()
|