Mercurial > vec
diff CMakeLists.txt @ 10:d1d5d767004c
chore: merge diverging branches
author | Paper <paper@tflc.us> |
---|---|
date | Mon, 18 Nov 2024 15:44:09 -0500 |
parents | 6e0eb3aa12ab |
children | e05c257c6a23 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CMakeLists.txt Mon Nov 18 15:44:09 2024 -0500 @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.5) + +project(vec VERSION 1.0.0 DESCRIPTION "a tiny C99 SIMD vector library") + +add_library(vec SHARED src/vec.c) + +set_target_properties(vec PROPERTIES PUBLIC_HEADER include/vec/vec.h) + +target_include_directories(vec PRIVATE include) + +# Installing + +include(GNUInstallDirs) + +install(TARGETS vec + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + +# pkg-config +configure_file(vec.pc.in vec.pc @ONLY) +install(FILES ${CMAKE_BINARY_DIR}/vec.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig) \ No newline at end of file