Skip to content

Commit

Permalink
cmake: Put DLLs and binaries into same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Aug 31, 2019
1 parent b6a1b4c commit 20475b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -21,6 +21,11 @@ if(OVERRIDE_CXX_STANDARD_FLAGS)
set(CMAKE_CXX_EXTENSIONS Off)
endif()

# Put DLLs and binaries into same directory
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

# Hide things by default for shared libraries
if(BUILD_SHARED_LIBS)
set(CMAKE_C_VISIBILITY_PRESET hidden)
Expand Down

0 comments on commit 20475b3

Please sign in to comment.