Skip to content

Commit

Permalink
Merge pull request #98 from SpatioTemporal/shared-library
Browse files Browse the repository at this point in the history
Shared library improvements
  • Loading branch information
michaelleerilee authored Sep 9, 2021
2 parents 62fe853 + 75ed2c6 commit 5e7eb75
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

cmake_minimum_required(VERSION 3.18)

project(STARE VERSION 1.2.3
project(STARE VERSION 1.2.4
DESCRIPTION "SpatioTemporal Adaptive Resolution Encoding for combining diverse geodata."
HOMEPAGE_URL "https://github.com/SpatioTemporal/STARE")

Expand All @@ -21,6 +21,7 @@ option(STARE_INCLUDE_PACKAGING "Include packaging rules for STARE" "${is_top_lev

option(CUTE_INCLUDE_DIR "Location of the CUTE headers." ON )
option(STARE_BUILD_APPS "Build bundled STARE apps." OFF )
option(STARE_INSTALL_LIBDIR "Destination of libs." "lib")

if(DEFINED ENV{CUTE_INCLUDE_DIR})
set( CUTE_INCLUDE_DIR $ENV{CUTE_INCLUDE_DIR} )
Expand Down
5 changes: 5 additions & 0 deletions NOTES
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

* 2021-0909 Version 1.2.4b

Improved CMake configuration for building both shared and static
versions. Working around GNUInstallDirs.

* 2021-0907 Version 1.2.3b

Improved CMake configuration for building both shared and static versions.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.2.4
16 changes: 12 additions & 4 deletions packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)


if (NOT DEFINED STARE_INSTALL_LIBDIR)
set(STARE_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}"
CACHE STRING "Path to library files")
endif()

if (NOT DEFINED STARE_INSTALL_CMAKEDIR)
set(STARE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/STARE"
set(STARE_INSTALL_CMAKEDIR "${STARE_INSTALL_LIBDIR}/cmake/STARE"
CACHE STRING "Path to STARE CMake files")
endif ()

# message( "STARE_INSTALL_CMAKEDIR: ${STARE_INSTALL_CMAKEDIR}" )
# message( "STARE_INSTALL_LIBDIR: ${STARE_INSTALL_LIBDIR}" )
# message( "CMAKE_INSTALL_LIBDIR: ${CMAKE_INSTALL_LIBDIR}" )

install(TARGETS STARE EXPORT STARE_Targets
RUNTIME COMPONENT STARE_Runtime
LIBRARY COMPONENT STARE_Runtime
NAMELINK_COMPONENT STARE_Development
ARCHIVE COMPONENT STARE_Development
LIBRARY DESTINATION "${STARE_INSTALL_LIBDIR}" COMPONENT STARE_Runtime NAMELINK_COMPONENT STARE_Development
ARCHIVE DESTINATION "${STARE_INSTALL_LIBDIR}" COMPONENT STARE_Development
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/STARE")

install(DIRECTORY "${STARE_BINARY_DIR}/src/include/STARE"
Expand Down

0 comments on commit 5e7eb75

Please sign in to comment.