share/hedgewars/Data/misc/CMakeLists.txt
author nemo
Mon, 01 Nov 2010 17:12:32 -0400
changeset 4083 830d1f4eb517
child 7811 49ab679cb384
permissions -rw-r--r--
Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request. Still needs the addition of the frontend code to mkdir -p in .local, copy the files, call update-mime-info and such
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4083
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     1
if(DEFINED DATA_INSTALL_DIR)                                                                                                            
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     2
    set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR})                                                                                          
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     3
else()                                                                                                                                  
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     4
    set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)                                                                               
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     5
endif()  
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     6
configure_file(hwengine.desktop.in hwengine.desktop)
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     7
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     8
file(GLOB miscfiles *.xml *.desktop)
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
     9
830d1f4eb517 Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
nemo
parents:
diff changeset
    10
install(FILES ${miscfiles} DESTINATION ${SHAREPATH}Data/misc)