equal
deleted
inserted
replaced
36 DEPENDS ${hwserver_sources} |
36 DEPENDS ${hwserver_sources} |
37 ) |
37 ) |
38 |
38 |
39 add_custom_target(hedgewars-server ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}") |
39 add_custom_target(hedgewars-server ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}") |
40 |
40 |
41 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin) |
41 |
|
42 if(APPLE) |
|
43 set (target_dir ".") |
|
44 else(APPLE) |
|
45 set (target_dir "bin") |
|
46 endif(APPLE) |
|
47 |
|
48 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir}) |