diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-08-22 14:53:14 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-08-22 14:53:14 (GMT) |
commit | e5782b214d839fe5d8b2f527ae331a246c6e012f (patch) | |
tree | 246e5bf1143b72267791e682b1ac37991d26adbe /contrib/cmake | |
parent | db8418fb9f733ca0147cc225ce0988d7866f15cd (diff) | |
download | uscxml-e5782b214d839fe5d8b2f527ae331a246c6e012f.zip uscxml-e5782b214d839fe5d8b2f527ae331a246c6e012f.tar.gz uscxml-e5782b214d839fe5d8b2f527ae331a246c6e012f.tar.bz2 |
Progress on the apache-commons wrapper
Diffstat (limited to 'contrib/cmake')
-rw-r--r-- | contrib/cmake/BuildPicoC.cmake | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/cmake/BuildPicoC.cmake b/contrib/cmake/BuildPicoC.cmake new file mode 100644 index 0000000..620f01f --- /dev/null +++ b/contrib/cmake/BuildPicoC.cmake @@ -0,0 +1,38 @@ +include(ExternalProject) + +if ("${CMAKE_GENERATOR}" STREQUAL "Xcode") + set(PICOC_LIBNAME "Debug/libpicoc.a") +elseif (WIN32) + set(PICOC_LIBNAME "picoc.lib") +elseif(UNIX) + set(PICOC_LIBNAME "libpicoc.a") +endif() + +externalproject_add(picoc + GIT_REPOSITORY https://github.com/zsaleeba/picoc.git + BUILD_IN_SOURCE 0 + PREFIX ${CMAKE_BINARY_DIR}/deps/picoc + UPDATE_COMMAND "" + PATCH_COMMAND + ${CMAKE_COMMAND} -E copy "${PROJECT_SOURCE_DIR}/contrib/patches/picoc/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt && + ${CMAKE_COMMAND} -E copy "${PROJECT_SOURCE_DIR}/contrib/patches/picoc/platform.h" <SOURCE_DIR>/platform.h + CONFIGURE_COMMAND + ${CMAKE_COMMAND} + -G ${CMAKE_GENERATOR} + -DCMAKE_BUILD_TYPE=Release + ${CMAKE_PARAM_TOOLCHAIN} + ${CMAKE_PARAM_ANDROID_ABI} + ${CMAKE_PARAM_API_LEVEL} + ${CMAKE_PARAM_SHARED} + -DCMAKE_VERBOSE_MAKEFILE=OFF + -DBUILD_SHARED_LIBS=OFF + <SOURCE_DIR> + INSTALL_COMMAND "" +) + +set(PICOC_INCLUDE_DIR ${CMAKE_BINARY_DIR}/deps/picoc/src/picoc) +set(PICOC_LIBRARY ${CMAKE_BINARY_DIR}/deps/picoc/src/picoc-build/${PICOC_LIBNAME}) + +set(PICOC_BUILT ON) + + |