CMakeLists.txt
changeset 265 bd06dcfa5bff
parent 262 b4bc05237c06
child 266 53f46353d029
equal deleted inserted replaced
264:1c50fe872a64 265:bd06dcfa5bff
     1 project(hedgewars)
     1 project(hedgewars)
     2 
     2 
     3 cmake_minimum_required(VERSION 2.4.0)
     3 cmake_minimum_required(VERSION 2.4.0)
     4 
     4 
     5 if(EXISTS ${DATA_INSTALL_DIR})
     5 if(DEFINED ${DATA_INSTALL_DIR})
     6 	set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
     6 	set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
     7 else(EXISTS ${DATA_INSTALL_DIR})
     7 else(DEFINED ${DATA_INSTALL_DIR})
     8 	set(SHAREPATH share/hedgewars/)
     8 	set(SHAREPATH share/hedgewars/)
     9 endif(EXISTS ${DATA_INSTALL_DIR})
     9 endif(DEFINED ${DATA_INSTALL_DIR})
    10 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    10 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    11 
    11 
    12 add_subdirectory(bin)
    12 add_subdirectory(bin)
    13 add_subdirectory(QTfrontend)
    13 add_subdirectory(QTfrontend)
    14 add_subdirectory(hedgewars)
    14 add_subdirectory(hedgewars)