Skip to content

Commit

Permalink
Create output_to_lib_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
chunleili authored Jul 15, 2024
1 parent 80d757a commit 1c8a4b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/cmake/output_to_lib_dir
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
环境:Windows

如果想把编译输出的文件统一放到lib文件夹下面

在project之前增加如下语句

# compile to mgcg_cuda/lib
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_LIST_DIR}/lib")
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_LIST_DIR}/lib")
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_LIST_DIR}/lib")
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_LIST_DIR}/lib")
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_LIST_DIR}/lib")
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_LIST_DIR}/lib")

0 comments on commit 1c8a4b4

Please sign in to comment.