blob: daed766a598dee8668ce2a6f0b784a7781c37664 (
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 (${LINUX_DISTRO} MATCHES debian OR ${LINUX_DISTRO} MATCHES ubuntu)
set(_LIB lib/${ARCH}-linux-gnu)
elseif (${LINUX_DISTRO} MATCHES fedora OR (${LINUX_DISTRO} MATCHES opensuse-tumbleweed))
set(_LIB lib${ADDRESS_SIZE})
else ()
set(_LIB lib)
endif ()
install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB})
endif ()
|