From 6e0ea2bef95208e6111d0eef393f51810e68e1d6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 23 Mar 2007 08:53:06 +0000 Subject: [PATCH] Added automatic creation of lib bin and lib/osgPlugins --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5efd0d6a0..7921ed4b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,6 +147,14 @@ ELSE(NOT APPLE) ENDIF(NOT APPLE) +################################################################################ +# Create bin and lib directories if required + +IF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") + FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin ${CMAKE_BINARY_DIR}/lib ${CMAKE_BINARY_DIR}/lib/osgPlugins) +ENDIF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") + + ################################################################################ # Installation stuff