Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Words para C++ La API funciona con CMake para cualquier sistema operativo GNU / Linux. Puede ser descargado desde el sitio web oficial.
Supongamos que tiene el siguiente proyecto CMake:
CMakeLists.txt:
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(app CXX)
add_executable(app main.cpp)main.cpp:
int main()
{
return 0;
}Siga las instrucciones a continuación para configurar manualmente Aspose.Words para C++ en tu CMake:
Copiar Aspose.Words.Cpp y CodePorting.Native.Cs2Cpp_api_*.* carpetas donde tenga CMakeLists.txt
Agregue las siguientes líneas a usted CMakeLists.txt:
# find Aspose.Words for C++ package and it's dependencies
find_package(CodePorting.Native.Cs2Cpp REQUIRED CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
find_package(Aspose.Words.Cpp REQUIRED CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
find_package(Threads REQUIRED)
# Link target application with Aspose.Words for C++
target_link_libraries(app PRIVATE Aspose::Words Threads::Threads)
Ahora puedes crear tu aplicación usando Aspose.Words para C++:
cd <path_to_dir_with_CMakeLists.txt>
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build
./build/app
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.