diff --git a/CMakeLists.txt b/CMakeLists.txt index 409b6405..7426239d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,11 @@ SET( LIB_INSTALL_DIR "lib" CACHE PATH "Path the built library files are ins SET( INCLUDE_INSTALL_DIR "osre" CACHE PATH "Path the header files are installed to." ) SET( BIN_INSTALL_DIR "bin" CACHE PATH "Path the tool executables are installed to." ) +# Set the default build output folders +SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib ) +SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib ) +SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin ) + INCLUDE_DIRECTORIES( BEFORE include/ /usr/include/ @@ -47,10 +52,6 @@ link_directories( ${SDL2_LIBRARIES} ) -SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib ) -SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib ) -SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin ) - set_property(GLOBAL PROPERTY USE_FOLDERS ON) IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT CMAKE_COMPILER_IS_MINGW)