summaryrefslogtreecommitdiff
path: root/indra/cmake/LibraryInstall.cmake
blob: b94841897c8f4d43ef6f94b393e178a7d37d4085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
list(REMOVE_ITEM ${PROJECT_NAME}_HEADER_FILES CMakeLists.txt)
#install(FILES ${${PROJECT_NAME}_HEADER_FILES}
#	DESTINATION include/${PROJECT_NAME})
if (BUILD_SHARED_LIBS)
	if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
		set(_LIB lib/${ARCH}-linux-gnu)
	elseif (EXISTS /lib64)
		set(_LIB lib64)
	else ()
		set(_LIB lib)
	endif ()
	install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB})
endif ()