Install header files correctly into include/fastlib and include/mlpack.
This commit is contained in:
@@ -15,7 +15,7 @@ include( CMake/TargetDistclean.cmake OPTIONAL )
|
||||
## Global compiler flags (dep. on platform TODO)
|
||||
add_definitions( -DDISABLE_DISK_MATRIX )
|
||||
|
||||
include_directories( ${FASTLIB_INCLUDE_DIRS} )
|
||||
#include_directories( ${FASTLIB_INCLUDE_DIRS} )
|
||||
include_directories(${CMAKE_BINARY_DIR}/include/)
|
||||
#TODO link_directories()
|
||||
|
||||
|
||||
@@ -72,6 +72,14 @@ foreach(incl_file ${INCLUDE_FILES})
|
||||
COMMAND ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${incl_file} ${CMAKE_BINARY_DIR}/include/mlpack/${incl_file} )
|
||||
endforeach()
|
||||
|
||||
# set installation rules for include files
|
||||
install(FILES ${CMAKE_BINARY_DIR}/include/mlpack/
|
||||
DESTINATION include/mlpack)
|
||||
|
||||
# set installation rules for mlpack programs
|
||||
install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/
|
||||
DESTINATION bin)
|
||||
|
||||
install(TARGETS mlpack
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
|
||||
@@ -65,6 +65,10 @@ endforeach()
|
||||
add_executable( otrav_test otrav_test.cc )
|
||||
target_link_libraries( otrav_test fastlib )
|
||||
|
||||
# make sure header files are installed correctly
|
||||
install(FILES ${CMAKE_BINARY_DIR}/include/fastlib/
|
||||
DESTINATION include/fastlib)
|
||||
|
||||
## installation
|
||||
install(TARGETS fastlib
|
||||
RUNTIME DESTINATION bin
|
||||
|
||||
Reference in New Issue
Block a user