forked from Mirrors/openclonk
Install c4groups even with HEADLESS_ONLY
parent
e62938b3e4
commit
b0a45e01ac
|
@ -1509,12 +1509,16 @@ foreach(group ${OC_C4GROUPS})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
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 HEADLESS_ONLY)
|
||||||
if(NOT APPLE)
|
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 new files
|
||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
|
||||||
# Update the MIME cache -- this makes the clonk:// protocol handler actually work
|
# Update the MIME cache -- this makes the clonk:// protocol handler actually work
|
||||||
|
@ -1525,7 +1529,6 @@ if(NOT HEADLESS_ONLY)
|
||||||
|
|
||||||
# Install binaries
|
# Install binaries
|
||||||
install(TARGETS openclonk DESTINATION games)
|
install(TARGETS openclonk DESTINATION games)
|
||||||
install(TARGETS c4group DESTINATION bin)
|
|
||||||
else()
|
else()
|
||||||
install(TARGETS openclonk
|
install(TARGETS openclonk
|
||||||
BUNDLE DESTINATION .
|
BUNDLE DESTINATION .
|
||||||
|
|
Loading…
Reference in New Issue