Skip to content

Commit

Permalink
Merge branch 'cmake-export-directories' of https://github.com/mensche…
Browse files Browse the repository at this point in the history
…l-d/copperspice into cs-1.5
  • Loading branch information
agserm committed Apr 13, 2019
2 parents 2f64796 + ea94b33 commit 8e42fc2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Expand Up @@ -419,26 +419,34 @@ configure_file(
@ONLY
)

if(APPLE)
set(PKG_PREFIX "CopperSpice.framework/Resources")
elseif(WIN32)
set(PKG_PREFIX "cmake/CopperSpice")
else()
set(PKG_PREFIX "${CMAKE_INSTALL_LIBDIR}/cmake/CopperSpice")
endif()

install(
FILES
${CMAKE_BINARY_DIR}/CopperSpiceConfig.cmake
${CMAKE_BINARY_DIR}/CopperSpiceConfigVersion.cmake
${CMAKE_SOURCE_DIR}/cmake/CopperSpiceMacros.cmake
${CMAKE_SOURCE_DIR}/cmake/InstallMinGW.cmake
DESTINATION cmake/CopperSpice
DESTINATION ${PKG_PREFIX}
)

install(EXPORT CopperSpiceLibraryTargets
NAMESPACE CopperSpice::
FILE CopperSpiceLibraryTargets.cmake
DESTINATION cmake/CopperSpice
DESTINATION ${PKG_PREFIX}
)

install(
EXPORT CopperSpiceBinaryTargets
NAMESPACE CopperSpice::
FILE CopperSpiceBinaryTargets.cmake
DESTINATION cmake/CopperSpice
DESTINATION ${PKG_PREFIX}
)

message("")
Expand Down

0 comments on commit 8e42fc2

Please sign in to comment.