From 7de47524b2f2dcd45ab86d0efe1d1e89f3c3aae7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 4 Sep 2011 20:37:11 -0400 Subject: [PATCH] Output executables and the max plugins to the bin directory because 5 levels of nesting sucks. --- CMakeLists.txt | 1 + Sources/Tools/MaxMain/CMakeLists.txt | 1 + Sources/Tools/MaxPlasmaLights/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00f11e2e..4a878f77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ project(Plasma) cmake_minimum_required(VERSION 2.8) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") +SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${Plasma_BINARY_DIR}/bin) # Find all 3rd-party libraries that are required find_package(OpenSSL REQUIRED) diff --git a/Sources/Tools/MaxMain/CMakeLists.txt b/Sources/Tools/MaxMain/CMakeLists.txt index 9f2c7b4c..7836c92f 100644 --- a/Sources/Tools/MaxMain/CMakeLists.txt +++ b/Sources/Tools/MaxMain/CMakeLists.txt @@ -80,6 +80,7 @@ set(MaxMain_SOURCES plTextureSearch.cpp ) +SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Plasma_BINARY_DIR}/bin) add_library(MaxMain SHARED ${MaxMain_HEADERS} ${MaxMain_RESOURCES} ${MaxMain_SOURCES}) set_target_properties(MaxMain PROPERTIES OUTPUT_NAME "PlasmaMax") set_target_properties(MaxMain PROPERTIES SUFFIX ".gup") diff --git a/Sources/Tools/MaxPlasmaLights/CMakeLists.txt b/Sources/Tools/MaxPlasmaLights/CMakeLists.txt index 55588662..01133373 100644 --- a/Sources/Tools/MaxPlasmaLights/CMakeLists.txt +++ b/Sources/Tools/MaxPlasmaLights/CMakeLists.txt @@ -34,6 +34,7 @@ set(MaxPlasmaLights_SOURCES plRTProjDirLight.cpp ) +SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Plasma_BINARY_DIR}/bin) add_library(MaxPlasmaLights SHARED ${MaxPlasmaLights_HEADERS} ${MaxPlasmaLights_RESOURCES} ${MaxPlasmaLights_SOURCES}) set_target_properties(MaxPlasmaLights PROPERTIES SUFFIX ".dlo")