From 7f8319af1badb2aafffaa86100da151a83603281 Mon Sep 17 00:00:00 2001 From: cpp_code Date: Sun, 17 Jun 2018 21:35:59 +0800 Subject: [PATCH] Add CMakeLists.txt to build project by CMAKE --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9c8c221 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 2.6) + +project(c-algorithms) + +aux_source_directory(./src SRC_DIR) + +add_library(calg-1.0 STATIC ${SRC_DIR}) + +install(TARGETS calg-1.0 + ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) +install(FILES src/*.h + DESTINATION ${CMAKE_INSTALL_PREFIX}/include/clag)