sweeten cmake

This commit is contained in:
Vitor Santos Costa 2016-12-10 01:06:16 -06:00
parent 9f16487d0c
commit cbb0d81ac4
2 changed files with 5 additions and 3 deletions

View File

@ -34,6 +34,7 @@ include(MacroOptionalFindPackage)
include(MacroLogFeature) include(MacroLogFeature)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
include (GNUInstallDirs) include (GNUInstallDirs)
# Creates and names a library, sets it as either STATIC # Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code. # or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds it for you. # You can define multiple libraries, and CMake builds it for you.
@ -92,6 +93,7 @@ if (ANDROID)
ADD_SUBDIRECTORY(utf8proc) ADD_SUBDIRECTORY(utf8proc)
ADD_SUBDIRECTORY(CXX) ADD_SUBDIRECTORY(CXX)
set (SWIG_FILES ${CMAKE_SOURCE_DIR}/../generated/jni/yap_wrap.cpp ) set (SWIG_FILES ${CMAKE_SOURCE_DIR}/../generated/jni/yap_wrap.cpp )
else () else ()
@ -113,7 +115,7 @@ if (WIN32)
endif() endif()
add_component (core add_component (core
${ENGINE_SOURCES} ${ENGINE_SOURCES}
${SWIG_FILES} ${SWIG_FILES}
${C_INTERFACE_SOURCES} ${C_INTERFACE_SOURCES}

4
configure vendored
View File

@ -361,5 +361,5 @@ if [ "x${LDFLAGS}" != "x" ]; then
done done
fi fi
CMAKE_CMD="'${CMAKE} ${TOP_SRCDIR}" CMAKE_CMD="${CMAKE} ${TOP_SRCDIR}"
echo "${CMAKE} ${TOP_SRCDIR} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=${LIBDIR} ${CMAKE_ARGS}" ${CMAKE_CMD} ${TOP_SRCDIR} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=${LIBDIR} ${CMAKE_ARGS}