equal
deleted
inserted
replaced
6 |
6 |
7 if(WIN32 AND NOT UNIX) |
7 if(WIN32 AND NOT UNIX) |
8 set(HEDGEWARS_BINDIR ".") |
8 set(HEDGEWARS_BINDIR ".") |
9 else(WIN32 AND NOT UNIX) |
9 else(WIN32 AND NOT UNIX) |
10 set(HEDGEWARS_BINDIR ${CMAKE_INSTALL_PREFIX}) |
10 set(HEDGEWARS_BINDIR ${CMAKE_INSTALL_PREFIX}) |
11 set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR}) |
11 if(DEFINED ${DATA_INSTALL_DIR}) |
|
12 set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR}) |
|
13 else(DEFINED ${DATA_INSTALL_DIR}) |
|
14 set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/) |
|
15 endif(DEFINED ${DATA_INSTALL_DIR}) |
12 endif(WIN32 AND NOT UNIX) |
16 endif(WIN32 AND NOT UNIX) |
13 |
17 |
14 configure_file(${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp.in |
18 configure_file(${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp.in |
15 ${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp) |
19 ${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp) |
16 |
20 |