cmake_modules/paths.cmake
branch0.9.20
changeset 9862 14292fb8d094
parent 9860 d419ff107e15
child 9870 acf1ccf06b2d
equal deleted inserted replaced
9860:d419ff107e15 9862:14292fb8d094
    12 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBRARY_OUTPUT_PATH})
    12 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBRARY_OUTPUT_PATH})
    13 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${LIBRARY_OUTPUT_PATH})
    13 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${LIBRARY_OUTPUT_PATH})
    14 
    14 
    15 #resource paths
    15 #resource paths
    16 if(UNIX AND NOT APPLE)
    16 if(UNIX AND NOT APPLE)
    17     set(target_binary_install_dir "bin")
    17     set(target_binary_install_dir "bin" CACHE PATH "install dest for binaries")
    18     set(target_library_install_dir "lib")
    18     set(target_library_install_dir "lib" CACHE PATH "install dest for libs")
    19 
    19 
    20     string(SUBSTRING "${DATA_INSTALL_DIR}" 0 1 sharepath_start)
    20     string(SUBSTRING "${DATA_INSTALL_DIR}" 0 1 sharepath_start)
    21     if (NOT (${sharepath_start} MATCHES "/"))
    21     if (NOT (${sharepath_start} MATCHES "/"))
    22         set(HEDGEWARS_DATADIR "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/")
    22         set(HEDGEWARS_DATADIR "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/")
    23     else()
    23     else()