Merge pull request #3 from ebraminio/binary

Use CMAKE_BINARY_DIR instead CMAKE_SOURCE_DIR for setting build output directory
This commit is contained in:
Gyu-sun Youm 2014-08-12 22:33:08 +09:00
commit 64d0afa487

View File

@ -5,9 +5,9 @@ SET( SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src )
SET( INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ) SET( INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include )
SET( RC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build ) SET( RC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
OPTION( glew-cmake_BUILD_SHARED "Build the shared glew library" ON) OPTION( glew-cmake_BUILD_SHARED "Build the shared glew library" ON)
OPTION( glew-cmake_BUILD_STATIC "Build the static glew library" ON) OPTION( glew-cmake_BUILD_STATIC "Build the static glew library" ON)