1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Don't install libxrme at all, but do copy the headers into cmake's binary dir on mac to fix the build

This commit is contained in:
David Sansome 2011-03-04 20:50:26 +00:00
parent 66a5a1484b
commit 75ff490f76

View File

@ -32,22 +32,8 @@ target_link_libraries(xrme
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
if(NOT APPLE)
# Install library
install(TARGETS xrme
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
# Install public headers
install(FILES ${PUBLIC_HEADERS}
DESTINATION include/xrme/
)
# Also install public headers into the cmake binary dir so packages can use
# libxrme in their source tree by doing include_directories(${CMAKE_BINARY_DIR})
foreach(header ${PUBLIC_HEADERS})
configure_file(${header} ${CMAKE_BINARY_DIR}/xrme/${header} COPYONLY)
endforeach(header)
endif(NOT APPLE)
# Also install public headers into the cmake binary dir so packages can use
# libxrme in their source tree by doing include_directories(${CMAKE_BINARY_DIR})
foreach(header ${PUBLIC_HEADERS})
configure_file(${header} ${CMAKE_BINARY_DIR}/xrme/${header} COPYONLY)
endforeach(header)