I use cmake and make to build some libs in Linux. The install part of the CMakelist is given below:
add_library(RVO ${RVO_HEADERS} ${RVO_SOURCES})
if(WIN32)
set_target_properties(RVO PROPERTIES COMPILE_DEFINITIONS NOMINMAX)
endif()
install(FILES ${RVO_HEADERS} DESTINATION include)
install(TARGETS RVO DESTINATION lib)
But when I run make, the lib is correctly built, but not moved to the corresponding foler "/lib" as expected, nor the "/include" folder is created with files copied in.
What is the problem here?