share/hedgewars/Data/misc/CMakeLists.txt
author koda
Wed, 24 Oct 2012 10:23:37 +0100
changeset 7811 49ab679cb384
parent 4083 830d1f4eb517
child 8316 89232b2fa1d6
permissions -rw-r--r--
hgignore and skip one config file for win32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7811
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     1
if(DEFINED DATA_INSTALL_DIR)
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     2
    set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR}
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     3
)
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     4
else()
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     5
    set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)
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
     6
endif()  
7811
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     7
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
     8
if(UNIX AND NOT APPLE)
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
     9
configure_file(hwengine.desktop.in hwengine.desktop)
7811
49ab679cb384 hgignore and skip one config file for win32
koda
parents: 4083
diff changeset
    10
endif()
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
    11
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
    12
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
    13
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
    14
install(FILES ${miscfiles} DESTINATION ${SHAREPATH}Data/misc)