From 75eafcf397137275df066926e91ec47bbae06d82 Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Sun, 11 Feb 2018 16:25:55 +0100 Subject: [PATCH 1/4] README: Adding ExternalProject_Add example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index c374786f7..f9afa9ceb 100644 --- a/README.md +++ b/README.md @@ -233,3 +233,20 @@ cd AppImageKit/ sudo bash -ex install-build-deps.sh bash -ex build.sh ``` + +## Embedding into your project (CMake) + +The following example is based on the build.sh script above, but gives the possibility to build the AppImageKit together with your software. The section below is an snipped of an CMake script. +``` +if(BUILD_OS_LINUX) + ExternalProject_Add(AppImageKit + GIT_REPOSITORY https://github.com/AppImage/AppImageKit.git + GIT_TAG appimagetool/master + GIT_SUBMODULES "" + CMAKE_COMMAND ${CMAKE_COMMAND} -E env "PATH=${CMAKE_INSTALL_PREFIX}/bin/:$ENV{PATH}" "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib/" "LDFLAGS=-L${CMAKE_INSTALL_PREFIX}/lib" "CPPFLAGS=-I${CMAKE_INSTALL_PREFIX}/include" ${CMAKE_COMMAND} + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX} -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON + ) + + SetProjectDependencies(TARGET AppImageKit DEPENDS glib libfuse cairo OpenSSL patch sed wget) +endif() +``` From ed64a0ad34952bfe32c23c2905ec2e8577fd0ce2 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 11 Feb 2018 15:32:36 +0000 Subject: [PATCH 2/4] Fix small typo --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f9afa9ceb..f766b6417 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,8 @@ bash -ex build.sh ## Embedding into your project (CMake) -The following example is based on the build.sh script above, but gives the possibility to build the AppImageKit together with your software. The section below is an snipped of an CMake script. +The following example is based on the build.sh script above, but gives the possibility to build the AppImageKit together with your software. The section below is an snippet of an CMake script. + ``` if(BUILD_OS_LINUX) ExternalProject_Add(AppImageKit From 939a22f0845800636d3b3d4a71c936728af92587 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Sun, 11 Feb 2018 16:43:05 +0100 Subject: [PATCH 3/4] Grammar fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f766b6417..28b29eb49 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ bash -ex build.sh ## Embedding into your project (CMake) -The following example is based on the build.sh script above, but gives the possibility to build the AppImageKit together with your software. The section below is an snippet of an CMake script. +The following example is based on the build.sh script above, but gives the possibility to build AppImageKit together with your software. The section below is an snippet of an CMake script. ``` if(BUILD_OS_LINUX) From 629a46284a578ac51b3bf74309ec508e57938604 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 11 Feb 2018 15:49:12 +0000 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28b29eb49..3cc07280f 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ bash -ex build.sh ## Embedding into your project (CMake) -The following example is based on the build.sh script above, but gives the possibility to build AppImageKit together with your software. The section below is an snippet of an CMake script. +The following example is based on the build.sh script above, but gives the possibility to build AppImageKit together with your software. The section below is a snippet of a CMake script. ``` if(BUILD_OS_LINUX)