CMakeLists.txt
changeset 262 b4bc05237c06
parent 261 21b03fe1cc28
child 265 bd06dcfa5bff
equal deleted inserted replaced
261:21b03fe1cc28 262:b4bc05237c06
     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 set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
     5 if(EXISTS ${DATA_INSTALL_DIR})
       
     6 	set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
       
     7 else(EXISTS ${DATA_INSTALL_DIR})
       
     8 	set(SHAREPATH share/hedgewars/)
       
     9 endif(EXISTS ${DATA_INSTALL_DIR})
     6 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    10 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
     7 
    11 
     8 add_subdirectory(bin)
    12 add_subdirectory(bin)
     9 add_subdirectory(QTfrontend)
    13 add_subdirectory(QTfrontend)
    10 add_subdirectory(hedgewars)
    14 add_subdirectory(hedgewars)