File: cmake.patch

package info (click to toggle)
libinih 42-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 272 kB
  • sloc: ansic: 459; cpp: 101; sh: 36; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d4264a4
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 2.8.9)
+project(inih)
+
+include(GNUInstallDirs)
+
+file(GLOB SOURCES "*.c")
+file(GLOB HEADERS "*.h")
+
+add_library(inih SHARED ${SOURCES})
+set_property(TARGET inih PROPERTY VERSION "1.0.0")
+set_property(TARGET inih PROPERTY SOVERSION 1 )
+
+install(TARGETS inih DESTINATION "${CMAKE_INSTALL_LIBDIR}")
+install(FILES ${HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")