forked from eugenwintersberger/cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutputDirConfig.cmake
More file actions
19 lines (17 loc) · 967 Bytes
/
OutputDirConfig.cmake
File metadata and controls
19 lines (17 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# set default output directory paths
#
# =============================================================================
# setting up the output directory for library, archive and runtime targets
#
# This should be the same on all platforms just to avoid confusion
# =============================================================================
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
message(STATUS "==============================================================")
message(STATUS "Build output directories:")
message(STATUS "Write runtime files to: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message(STATUS "Write library files to: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
message(STATUS "Write archive files to: ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}")
message(STATUS "==============================================================")