9190
|
1 |
#where to build libs and bins
|
|
2 |
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
|
3 |
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
|
4 |
|
|
5 |
#resource paths
|
|
6 |
if(UNIX AND NOT APPLE)
|
|
7 |
set(target_binary_install_dir "bin")
|
|
8 |
set(target_library_install_dir "lib")
|
|
9 |
|
|
10 |
string(SUBSTRING "${DATA_INSTALL_DIR}" 0 1 sharepath_start)
|
|
11 |
if (NOT (${sharepath_start} MATCHES "/"))
|
|
12 |
set(HEDGEWARS_DATADIR "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/")
|
|
13 |
else()
|
|
14 |
set(HEDGEWARS_DATADIR "${DATA_INSTALL_DIR}/")
|
|
15 |
endif()
|
|
16 |
set(HEDGEWARS_FULL_DATADIR "${HEDGEWARS_DATADIR}")
|
|
17 |
else()
|
|
18 |
set(target_binary_install_dir "./")
|
|
19 |
|
|
20 |
if(APPLE)
|
|
21 |
set(target_library_install_dir "../Frameworks/")
|
|
22 |
set(CMAKE_INSTALL_PREFIX "Hedgewars.app/Contents/MacOS/")
|
|
23 |
set(HEDGEWARS_DATADIR "../Resources/")
|
|
24 |
set(HEDGEWARS_FULL_DATADIR "/Applications/${CMAKE_INSTALL_PREFIX}/${HEDGEWARS_DATADIR}")
|
|
25 |
elseif(WIN32)
|
|
26 |
set(target_library_install_dir "./")
|
|
27 |
set(HEDGEWARS_DATADIR "./")
|
|
28 |
set(HEDGEWARS_FULL_DATADIR "${CMAKE_INSTALL_PREFIX}/")
|
|
29 |
link_directories("${EXECUTABLE_OUTPUT_PATH}" "${CMAKE_SOURCE_DIR}/misc/winutils/bin")
|
|
30 |
endif()
|
|
31 |
endif()
|