Skip to content

Commit

Permalink
test install command
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleTheFu committed Sep 29, 2024
1 parent 21f8ac9 commit cd30210
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,17 @@ set(RESOURCE_FILES resource/lena.png resource/bunny.obj)
# 将资源文件复制到构建目录
foreach(RESOURCE ${RESOURCE_FILES})
configure_file(${RESOURCE} ${CMAKE_CURRENT_BINARY_DIR}/${RESOURCE} COPYONLY)
endforeach()
endforeach()

# set(MY_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/bin")

install(TARGETS libs
EXPORT libs_export
ARCHIVE DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/lib
LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/lib
RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/bin)

# install(TARGETS libs RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/bin) # 输出到 bin 目录
install(TARGETS ray_tracer RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/bin) # 输出到 bin 目录

install(FILES ${PROJECT_SOURCE_DIR}/assimp_lib/lib/assimp.lib DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/bin) # 输出到 bin 目录

0 comments on commit cd30210

Please sign in to comment.