Install c4groups even with HEADLESS_ONLY

alut-include-path
Julius Michaelis 2017-04-01 12:14:11 +02:00
parent e62938b3e4
commit b0a45e01ac
1 changed files with 8 additions and 5 deletions

View File

@ -1509,12 +1509,16 @@ foreach(group ${OC_C4GROUPS})
endif()
endforeach()
if(NOT APPLE)
# group files (game data)
add_custom_target(groups DEPENDS ${OC_C4GROUPS})
set_property(TARGET groups PROPERTY FOLDER "Setup")
add_dependencies(data groups)
# Install binaries
install(TARGETS c4group DESTINATION bin)
endif()
if(NOT HEADLESS_ONLY)
if(NOT APPLE)
add_custom_target(groups DEPENDS ${OC_C4GROUPS})
set_property(TARGET groups PROPERTY FOLDER "Setup")
add_dependencies(data groups)
# Install new files
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
# Update the MIME cache -- this makes the clonk:// protocol handler actually work
@ -1525,7 +1529,6 @@ if(NOT HEADLESS_ONLY)
# Install binaries
install(TARGETS openclonk DESTINATION games)
install(TARGETS c4group DESTINATION bin)
else()
install(TARGETS openclonk
BUNDLE DESTINATION .