Skip to content

Commit

Permalink
Install files to the correct GNU directories
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
mcatanzaro committed Apr 8, 2018
1 parent 2d53b25 commit dcf830e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 2.8)

include(GNUInstallDirs)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -D_POSIX_SOURCE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
Expand Down Expand Up @@ -60,20 +62,20 @@ set_target_properties(WPEBackend PROPERTIES

install(TARGETS WPEBackend
EXPORT WPETargets
LIBRARY DESTINATION lib
INCLUDES DESTINATION include
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wpe-${WPE_API_VERSION}/wpe
)
install(
FILES
${WPE_PUBLIC_HEADERS}
DESTINATION
include/wpe-${WPE_API_VERSION}/wpe
${CMAKE_INSTALL_INCLUDEDIR}/wpe-${WPE_API_VERSION}/wpe
)

configure_file(wpe.pc.cmake wpe-${WPE_API_VERSION}.pc @ONLY)
install(
FILES
"${CMAKE_CURRENT_BINARY_DIR}/wpe-${WPE_API_VERSION}.pc"
DESTINATION
lib/pkgconfig
${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

0 comments on commit dcf830e

Please sign in to comment.