Skip to content

Commit

Permalink
Use GNUInstallDirs everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapGentoo committed Jul 15, 2018
1 parent 3509362 commit b622270
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ IF(NOT CMAKE_BUILD_TYPE)
ENDIF(NOT CMAKE_BUILD_TYPE)

## Set install location
IF (NOT DEFINED CMAKE_INSTALL_PREFIX)
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
EXECUTE_PROCESS(COMMAND sh -c "echo `uname`-`uname -r | cut -d'-' -f1`-`uname -m`" OUTPUT_VARIABLE VARIANT_DIRECTORY OUTPUT_STRIP_TRAILING_WHITESPACE)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/${VARIANT_DIRECTORY}")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

# Prefer libglvnd for OpenGL
set(OpenGL_GL_PREFERENCE GLVND)
Expand Down
4 changes: 2 additions & 2 deletions src/py/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ endif ()

SET(PYTHON_DEST "${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/site-packages" )
INSTALL(TARGETS _partio DESTINATION ${PYTHON_DEST})
INSTALL(FILES ${CMAKE_BINARY_DIR}/${outdir}/py/partio.py DESTINATION ${PYTHON_DEST})
INSTALL(FILES partio.i DESTINATION share/partio/swig)
INSTALL(FILES ${CMAKE_BINARY_DIR}/${outdir}/py/partio.py DESTINATION ${PYTHON_DEST})
INSTALL(FILES partio.i DESTINATION ${CMAKE_INSTALL_DATADIR}/partio/swig)

ENDIF(PYTHONLIBS_FOUND)
#ENDIF(SWIG_FOUND)
2 changes: 1 addition & 1 deletion src/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ IF(GLUT_FOUND AND OPENGL_FOUND)
INCLUDE_DIRECTORIES(${GLUT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
ADD_EXECUTABLE(partview partview.cpp)
target_link_libraries(partview ${PARTIO_LIBRARIES} ${GLUT_LIBRARY} ${OPENGL_LIBRARY})
install(TARGETS partview DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS partview DESTINATION ${CMAKE_INSTALL_BINDIR})
ENDIF(GLUT_FOUND AND OPENGL_FOUND)

ADD_EXECUTABLE(partinfo partinfo.cpp)
Expand Down

0 comments on commit b622270

Please sign in to comment.