From ab712cf153e543e84a5c6484e19d22ba90bdbeff Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 Dec 2017 06:17:54 +0100 Subject: Add cmake building, add ignore dirs option Sometimes it's not possible to build new sibs with older sibs because of changes that break backwards compatbility. If sibs installation fails with sibs, use cmake. --- CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c9bf973 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,24 @@ +cmake_minimum_required(VERSION 3.0.2) +project(sibs) + +set(CMAKE_CXX_STANDARD 11) + +set(SOURCE_FILES + external/xxhash.c + backend/ninja/Ninja.cpp + src/main.cpp + src/FileUtil.cpp + src/Conf.cpp + src/PkgConfig.cpp + src/Exec.cpp + src/GlobalLib.cpp + src/curl.cpp + src/Archive.cpp) + +find_package(CURL REQUIRED) +find_package(LibArchive REQUIRED) + +add_executable(sibs ${SOURCE_FILES}) + +include_directories(${CURL_INCLUDE_DIR} ${LibArchive_INCLUDE_DIR}) +target_link_libraries(sibs ${CURL_LIBRARIES} ${LibArchive_LIBRARIES}) -- cgit v1.2.3