share/hedgewars/Data/misc/CMakeLists.txt
author nemo
Tue, 13 Mar 2012 00:05:03 -0400
changeset 6778 a9c6457dca29
parent 4083 830d1f4eb517
child 7811 49ab679cb384
permissions -rw-r--r--
Minimise another sqrt check.

if(DEFINED DATA_INSTALL_DIR)                                                                                                            
    set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR})                                                                                          
else()                                                                                                                                  
    set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)                                                                               
endif()  
configure_file(hwengine.desktop.in hwengine.desktop)

file(GLOB miscfiles *.xml *.desktop)

install(FILES ${miscfiles} DESTINATION ${SHAREPATH}Data/misc)