share/hedgewars/Data/misc/CMakeLists.txt
author unc0rr
Sun, 18 Nov 2012 01:00:26 +0400
changeset 8057 93e16240f178
parent 7811 49ab679cb384
child 8316 89232b2fa1d6
permissions -rw-r--r--
Merge physfslayer branch into default. Have fun!
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)