diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-lief/project')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-lief/project/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-lief/project/main.cpp | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/CMakeLists.txt new file mode 100644 index 0000000..9c994ed --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.24)
+
+project(vcpkg-ci-lief LANGUAGES C CXX)
+
+set(CMAKE_CXX_STANDARD 14)
+
+find_package(LIEF CONFIG REQUIRED)
+add_executable(main main.cpp)
+target_link_libraries(main PRIVATE LIEF::LIEF)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/main.cpp new file mode 100644 index 0000000..752dbe1 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-lief/project/main.cpp @@ -0,0 +1,11 @@ +#include <iostream>
+#include <LIEF/LIEF.hpp>
+#include <LIEF/version.h>
+
+int main()
+{
+ // Outputs a string representation of the PUBLIC access flag (index 1)
+ std::cout << "access flags public = " << LIEF::DEX::to_string(LIEF::DEX::access_flags_list[1]) << std::endl;
+ std::cout << "Version = " << LIEF_VERSION << std::endl;
+ return 0;
+}
|