CMakeLists.txt
changeset 9994 8455993a7a1b
parent 9991 3858d99476f5
child 10004 eb0b520564bb
equal deleted inserted replaced
9993:76ad55807c24 9994:8455993a7a1b
    19 #libraries are built shared unless explicitly added as a static
    19 #libraries are built shared unless explicitly added as a static
    20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON)
    20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON)
    21 #set this to ON when 2.1.0 becomes more widespread (and only for linux)
    21 #set this to ON when 2.1.0 becomes more widespread (and only for linux)
    22 option(PHYSFS_SYSTEM "Use system physfs (off)" OFF)
    22 option(PHYSFS_SYSTEM "Use system physfs (off)" OFF)
    23 
    23 
       
    24 #system paths for finding required fonts (see share/hedgewars/Data/fonts)
       
    25 #subdirectories will NOT be searched.
       
    26 #all founds that can't be found will be bundled with hedgewars
       
    27 option(PHYSFS_SYSTEM "Use system physfs (off)" OFF)
       
    28 
       
    29 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON)
       
    30 
    24 if(WIN32 OR APPLE)
    31 if(WIN32 OR APPLE)
    25     option(LUA_SYSTEM "Use system lua (off)" OFF)
    32     option(LUA_SYSTEM "Use system lua (off)" OFF)
    26 else()
    33 else()
    27     option(LUA_SYSTEM "Use system lua (on)" ON)
    34     option(LUA_SYSTEM "Use system lua (on)" ON)
    28 endif()
    35 endif()
    36 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    43 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    37 if(UNIX AND NOT APPLE)
    44 if(UNIX AND NOT APPLE)
    38     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    45     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    39 endif()
    46 endif()
    40 
    47 
       
    48 set(FONTS_DIRS "" CACHE STRING "Additional paths to folders where required fonts can be found ( ; is separator)")
    41 
    49 
    42 #versioning
    50 #versioning
    43 set(CPACK_PACKAGE_VERSION_MAJOR 0)
    51 set(CPACK_PACKAGE_VERSION_MAJOR 0)
    44 set(CPACK_PACKAGE_VERSION_MINOR 9)
    52 set(CPACK_PACKAGE_VERSION_MINOR 9)
    45 set(CPACK_PACKAGE_VERSION_PATCH 21)
    53 set(CPACK_PACKAGE_VERSION_PATCH 21)