Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Words für C++ API funktioniert mit CMake für jedes GNU/Linux Betriebssystem. Es kann sein von der offiziellen Website heruntergeladen.
Nehmen wir an, Sie haben das folgende CMake -Projekt:
CMakeLists.txt:
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(app CXX)
add_executable(app main.cpp)main.cpp:
int main()
{
return 0;
}Befolgen Sie die nachstehenden Anweisungen, um manuell zu konfigurieren Aspose.Words für C++ in deinem CMake:
Kopieren Sie die Ordner Aspose.Words.Cpp und CodePorting.Native.Cs2Cpp_api_*.*, in denen Sie CMakeLists haben.txt
Fügen Sie die folgenden Zeilen zu Ihnen CMakeLists hinzu.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)
Jetzt können Sie Ihre Anwendung mit erstellen Aspose.Words für 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.