mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 05:39:31 +08:00
11d559a0c9
* [soil] Update repository * Remove skip from ci.baseline.txt * Update CMakeLists.txt and add support field * update version files * Update to another repository * Rename SOILConfig.cmake.in to soilConfig.cmake.in * Update ports/soil/portfile.cmake * Update configureVersion file * Update and rename SOILConfigVersion.cmake.in to soilConfigVersion.cmake.in * Update version files * Update versions/s-/soil.json
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c29d9bf..fc66b85 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,5 +1,7 @@
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
+project(soil C)
|
|
+
|
|
include_directories(inc)
|
|
|
|
ADD_LIBRARY( soil STATIC
|
|
@@ -8,3 +10,31 @@ ADD_LIBRARY( soil STATIC
|
|
src/image_DXT.c
|
|
src/SOIL.c
|
|
)
|
|
+
|
|
+target_include_directories(soil INTERFACE $<INSTALL_INTERFACE:include>)
|
|
+
|
|
+install(TARGETS soil
|
|
+ EXPORT soilTargets
|
|
+ ARCHIVE DESTINATION lib
|
|
+ LIBRARY DESTINATION lib)
|
|
+
|
|
+install(FILES inc/SOIL/SOIL.h
|
|
+ DESTINATION include/SOIL)
|
|
+
|
|
+# Prepare and install package files
|
|
+set(soil_VERSION "2021.4.22")
|
|
+
|
|
+export(TARGETS soil FILE "${PROJECT_BINARY_DIR}/soilTargets.cmake")
|
|
+
|
|
+export(PACKAGE soil)
|
|
+# Create the soilConfig.cmake and soilConfigVersion files
|
|
+configure_file(soilConfig.cmake.in "${PROJECT_BINARY_DIR}/soilConfig.cmake" @ONLY)
|
|
+configure_file(soilConfigVersion.cmake.in "${PROJECT_BINARY_DIR}/soilConfigVersion.cmake" @ONLY)
|
|
+# Install the soilConfig.cmake and soilConfigVersion.cmake
|
|
+install(FILES
|
|
+ "${PROJECT_BINARY_DIR}/soilConfig.cmake"
|
|
+ "${PROJECT_BINARY_DIR}/soilConfigVersion.cmake"
|
|
+ DESTINATION "share/soil")
|
|
+# Install the export set for use with the install-tree
|
|
+install(EXPORT soilTargets DESTINATION
|
|
+ "share/soil")
|
|
\ No newline at end of file
|