Moved pkg-config file generation.

This commit is contained in:
Camilla Berglund 2012-03-26 03:11:43 +02:00
parent e53bbfd2dd
commit 6fd6c5f7e4
2 changed files with 6 additions and 7 deletions

View File

@ -154,6 +154,12 @@ if (_GLFW_X11_GLX)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(_GLFW_USE_LINUX_JOYSTICKS 1) set(_GLFW_USE_LINUX_JOYSTICKS 1)
endif() endif()
configure_file(${GLFW_SOURCE_DIR}/src/libglfw.pc.in
${GLFW_BINARY_DIR}/src/libglfw.pc @ONLY)
install(FILES ${GLFW_BINARY_DIR}/src/libglfw.pc
DESTINATION lib/pkgconfig)
endif() endif()
#-------------------------------------------------------------------- #--------------------------------------------------------------------

View File

@ -1,11 +1,4 @@
if (_GLFW_X11_GLX)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libglfw.pc.in
${CMAKE_CURRENT_BINARY_DIR}/libglfw.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libglfw.pc
DESTINATION lib/pkgconfig)
endif()
include_directories(${GLFW_SOURCE_DIR}/src include_directories(${GLFW_SOURCE_DIR}/src
${GLFW_BINARY_DIR}/src ${GLFW_BINARY_DIR}/src
${glfw_INCLUDE_DIRS}) ${glfw_INCLUDE_DIRS})