summaryrefslogtreecommitdiffhomepage
path: root/macosx/CMakeLists.txt
blob: 89901251b9b68759607ea31fc1f065ab6e4189c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(APPLE)
    otr_escape_string(srcdir "${CMAKE_SOURCE_DIR}")
    otr_escape_string(bindir "${CMAKE_BINARY_DIR}")
    otr_escape_string(instdir "${CMAKE_INSTALL_PREFIX}")
    otr_escape_string(commit "${OPENTRACK_COMMIT}")
    install(CODE "
        execute_process(COMMAND /bin/sh \"${srcdir}/macosx/make-app-bundle.sh\"
                                        \"${srcdir}/macosx\"
                                        \"${instdir}\"
                                        \"${bindir}\"
                                        \"${commit}\")
    ")
endif()