Skip to content

Commit

Permalink
Merge pull request wdas#12 from davvid/install-paths
Browse files Browse the repository at this point in the history
build: move installed items into subdirectories
  • Loading branch information
aselle committed Nov 8, 2013
2 parents 01c0ee4 + a3819ea commit 23b1bb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/demos/rman/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ link_directories($ENV{RMANTREE}/lib)
add_library(SeExprOp SHARED seop.cpp)
target_link_libraries(SeExprOp prman ${SEEXPR_LIBRARIES})
FILE(GLOB ribs "*.rib")
install (TARGETS SeExprOp DESTINATION prman)
install (TARGETS SeExprOp DESTINATION ${CMAKE_INSTALL_LIBDIR}/prman)

foreach (SHADERSOURCE testdisp testse)
ADD_CUSTOM_COMMAND(
Expand All @@ -52,7 +52,7 @@ foreach (SHADERSOURCE testdisp testse)
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${SHADERSOURCE}.sl SeExprOp
)
add_custom_target(shader-${SHADERSOURCE} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${SHADERSOURCE}.slo)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SHADERSOURCE}.slo DESTINATION prman)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SHADERSOURCE}.slo DESTINATION ${CMAKE_INSTALL_LIBDIR}/prman)
endforeach(SHADERSOURCE)
install (FILES ${ribs} DESTINATION prman)
install (FILES ${ribs} DESTINATION ${CMAKE_INSTALL_LIBDIR}/prman)
endif(NOT ${RMAN_SET})
2 changes: 1 addition & 1 deletion src/demos/segraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(QT4_FOUND)
qt4_wrap_cpp(segraph_MOC_SRCS ${segraph_MOC_HDRS})

add_executable(segraph ${segraph_CPPS} ${segraph_MOC_SRCS})
install(TARGETS segraph DESTINATION demo)
install(TARGETS segraph DESTINATION share/SeExpr/demo)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
target_link_libraries(segraph ${QT_QTCORE_LIBRARY})
target_link_libraries(segraph ${QT_QTGUI_LIBRARY})
Expand Down
2 changes: 1 addition & 1 deletion src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
foreach(item basic)
ADD_EXECUTABLE(${item} "${item}.cpp")
target_link_libraries(${item} ${SEEXPR_LIBRARIES})
install(TARGETS ${item} DESTINATION test)
install(TARGETS ${item} DESTINATION share/test/SeExpr)
endforeach(item)

0 comments on commit 23b1bb2

Please sign in to comment.