QTfrontend/CMakeLists.txt
changeset 8646 e31044b7fbba
parent 8528 ffd71e99a4f0
child 8659 e49056d3aba1
equal deleted inserted replaced
8645:809e328bab99 8646:e31044b7fbba
    63 
    63 
    64 if(UNIX)
    64 if(UNIX)
    65     # HACK: in freebsd cannot find iconv.h included via SDL.h
    65     # HACK: in freebsd cannot find iconv.h included via SDL.h
    66     include_directories("/usr/local/include")
    66     include_directories("/usr/local/include")
    67 endif(UNIX)
    67 endif(UNIX)
    68 
       
    69 #directory for resources, relative to bindir (on linux an absolute path is always used)
       
    70 string(SUBSTRING "${SHAREPATH}" 0 1 sharepath_start)
       
    71 if(APPLE OR WIN32 OR ${sharepath_start} MATCHES "/")
       
    72     set(HEDGEWARS_DATADIR ${SHAREPATH})
       
    73 else()
       
    74     set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/${SHAREPATH})
       
    75 endif()
       
    76 
    68 
    77 #only the cocoa version of qt supports building 64 bit apps
    69 #only the cocoa version of qt supports building 64 bit apps
    78 if(APPLE AND (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64*") AND (NOT QT_MAC_USE_COCOA))
    70 if(APPLE AND (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64*") AND (NOT QT_MAC_USE_COCOA))
    79     message(FATAL_ERROR "Building the 64 bit version of Hedgewars *requires* the Cocoa variant of QT on Mac OS X")
    71     message(FATAL_ERROR "Building the 64 bit version of Hedgewars *requires* the Cocoa variant of QT on Mac OS X")
    80 endif()
    72 endif()