File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ target_include_directories(nmflib PUBLIC ${PLANC_COMMON} ${NNLS_SRC} ${OpenMP_CX
1818target_include_directories (nmflib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
1919target_link_libraries (nmflib PUBLIC utils hw_detect detect_blas )
2020generate_export_header (nmflib )
21+ set (nmf_headers nmf_lib.hpp ../nnls/nnls_lib.hpp ${CMAKE_CURRENT_BINARY_DIR} /nmflib_export.h)
2122if (BUILD_RCPP)
2223 if (WIN32 )
2324 add_custom_command (TARGET nmflib POST_BUILD
@@ -38,7 +39,9 @@ if(BUILD_RCPP)
3839 endif ()
3940endif ()
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)
You can’t perform that action at this time.
0 commit comments