ConfigPaths.cmake revision 7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickMESSAGE(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}")
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickIF(WIN32)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick SET(PACKAGE_LOCALE_DIR "locale")
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickELSEIF(WIN32)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick # TODO: check and change this to correct value:
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick SET(PACKAGE_LOCALE_DIR "locale")
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickENDIF(WIN32)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#SET(CMAKE_SKIP_RPATH:BOOL OFF)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# Include base dir, so other files can refer to the generated files.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# CMAKE_INCLUDE_CURRENT_DIR is not enough as it only includes the current dir and not the basedir with config.h in it
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#LINK_DIRECTORIES ("${LINK_DIRECTORIES}" "${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#INSTALL(TARGETS INKSCAPE
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# RUNTIME DESTINATION bin
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# LIBRARY DESTINATION lib
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# ARCHIVE DESTINATION lib
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#INSTALL(FILES ${files} DESTINATION include/INKSCAPE/INKSCAPE)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/INKSCAPE.pc.in
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# ${CMAKE_BINARY_DIR}/INKSCAPE.pc @ONLY IMMEDIATE )
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#INSTALL(FILES "${CMAKE_BINARY_DIR}/INKSCAPE.pc" DESTINATION lib/pkgconfig)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "Where to put the executables")set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "Where to put the libraries")