Skip to content

Commit

Permalink
Added config.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyt2 committed Mar 11, 2021
1 parent 4e8810b commit a2f06ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@ install(FILES "mat2npz" "npy2mat" "npz2mat" DESTINATION bin PERMISSIONS OWNER_RE

add_executable(example1 example1.cpp)
target_link_libraries(example1 cnpy)

install(TARGETS
cnpy
EXPORT cnpyConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

install(EXPORT
cnpyConfig
# DESTINATION "${CMAKE_INSTALL_DATADIR}/cnpy/cmake"
DESTINATION "lib/cmake"
NAMESPACE cnpy::
)

0 comments on commit a2f06ae

Please sign in to comment.