forked from Mirrors/openclonk
cmake: Always pack groups during build
This fixes make install, which previously tried to install nonexistant packed groups from the source directory. Make it use the ones from the build directory and build them during make all.
parent
ccbf4d1d45
commit
d709de7e73
|
@ -1232,6 +1232,7 @@ set(OC_C4GROUPS
|
|||
Tutorial.ocf
|
||||
)
|
||||
|
||||
add_custom_target(groups ALL)
|
||||
get_target_property(C4GROUP_LOCATION c4group LOCATION)
|
||||
get_target_property(CLONK_LOCATION clonk LOCATION)
|
||||
foreach(group ${OC_C4GROUPS})
|
||||
|
@ -1249,11 +1250,13 @@ foreach(group ${OC_C4GROUPS})
|
|||
DEPENDS c4group ${CMAKE_CURRENT_SOURCE_DIR}/planet/${group}
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_target(t${group} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${group})
|
||||
add_dependencies(groups t${group})
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${group} DESTINATION share/openclonk)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Install new files
|
||||
install(FILES ${OC_C4GROUPS} DESTINATION share/openclonk)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/clonk.desktop DESTINATION share/applications)
|
||||
|
||||
# Install binaries
|
||||
|
|
Loading…
Reference in New Issue