diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dd509a..cca103e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,9 @@ SET( SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src ) SET( INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ) SET( RC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build ) -SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) -SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) -SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) +SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib ) +SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib ) +SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) OPTION( glew-cmake_BUILD_SHARED "Build the shared glew library" ON) OPTION( glew-cmake_BUILD_STATIC "Build the static glew library" ON)