Skip to content

Commit b613f04

Browse files
committed
Add install targets
1 parent 59662b7 commit b613f04

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

nmf/CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ target_include_directories(nmflib PUBLIC ${PLANC_COMMON} ${NNLS_SRC} ${OpenMP_CX
1818
target_include_directories(nmflib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
1919
target_link_libraries(nmflib PUBLIC utils hw_detect detect_blas)
2020
generate_export_header(nmflib)
21+
set(nmf_headers nmf_lib.hpp ../nnls/nnls_lib.hpp ${CMAKE_CURRENT_BINARY_DIR}/nmflib_export.h)
2122
if(BUILD_RCPP)
2223
if(WIN32)
2324
add_custom_command(TARGET nmflib POST_BUILD
@@ -38,7 +39,9 @@ if(BUILD_RCPP)
3839
endif()
3940
endif()
4041
# target_link_libraries(${DENSE_OR_SPARSE}_inmf ${NMFLIB_LIBS})
41-
#install(TARGETS plancnmf nmflib
42-
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
43-
# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
44-
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
42+
install(TARGETS nmflib
43+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
44+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
45+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
46+
)
47+
install(FILES ${nmf_headers} TYPE INCLUDE)

0 commit comments

Comments
 (0)