diff --git a/CMakeLists.txt b/CMakeLists.txt index 729149d..d731a3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,19 +6,9 @@ set(CMAKE_CXX_STANDARD 17) option(STATIC_BUILD "enable static build" OFF) set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) -set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) - -include(FetchContent) - -FetchContent_Declare( - zero - GIT_REPOSITORY https://github.com/Hackerl/zero - GIT_TAG df739d44cacc95cf10251c0dbede56bc1f0b18bb -) -FetchContent_MakeAvailable(zero) +find_package(zero CONFIG REQUIRED) add_executable(pangolin main.cpp ptrace/tracee.cpp ptrace/executor.cpp) -target_link_libraries(pangolin zero $<$:-static-pie>) \ No newline at end of file +target_link_libraries(pangolin zero::zero $<$:-static-pie>) \ No newline at end of file diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json new file mode 100644 index 0000000..e6920e9 --- /dev/null +++ b/vcpkg-configuration.json @@ -0,0 +1,12 @@ +{ + "registries": [ + { + "kind": "git", + "repository": "https://github.com/Hackerl/vcpkg-registry", + "baseline": "0688d7a1a7a24bb3a65c3e7805affc84c6ed2eb4", + "packages": [ + "zero" + ] + } + ] +} diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000..d8dcf44 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,11 @@ +{ + "name": "pangolin", + "version": "1.0.0", + "builtin-baseline": "69efe9cc2df0015f0bb2d37d55acde4a75c9a25b", + "dependencies": [ + { + "name": "zero", + "version>=": "1.0.2" + } + ] +}