Permalink
Browse files

added variable for libraries output directory

  • Loading branch information...
1 parent 11c6624 commit aa8662ad84d75f654da70be01a083b547396adf1 @clynamen clynamen committed Mar 24, 2012
Showing with 7 additions and 3 deletions.
  1. +4 −0 CMakeLists.txt
  2. +1 −1 Plugins/Physics/CMakeLists.txt
  3. +1 −1 Plugins/Player/CMakeLists.txt
  4. +1 −1 Plugins/Sound/CMakeLists.txt
View
@@ -16,6 +16,10 @@ if(NOT DEFINED OGITOR_INCLUDE_DIRS)
endif()
endif()
+if(NOT DEFINED PLUGINS_OUTPUT_DIR)
+ set(PLUGINS_OUTPUT_DIR "${PROJECT_SOURCE_DIR}/Libraries")
+endif()
+
include_directories(${OGRE_INCLUDE_DIRS})
include_directories(${OGITOR_INCLUDE_DIRS})
@@ -14,7 +14,7 @@ include_directories(.)
add_library(PhysicsPlugin SHARED ${HEADER_FILES} ${SOURCE_FILES})
-set(LIBRARY_OUTPUT_PATH ../lib)
+set(LIBRARY_OUTPUT_PATH ${PLUGINS_OUTPUT_DIR})
set_target_properties(PhysicsPlugin PROPERTIES COMPILE_DEFINITIONS PLUGIN_EXPORT)
set_target_properties(PhysicsPlugin PROPERTIES SOLUTION_FOLDER Plugins)
@@ -14,7 +14,7 @@ include_directories(.)
add_library(PlayerPlugin SHARED ${HEADER_FILES} ${SOURCE_FILES})
-set(LIBRARY_OUTPUT_PATH ../lib)
+set(LIBRARY_OUTPUT_PATH ${PLUGINS_OUTPUT_DIR})
set_target_properties(PlayerPlugin PROPERTIES COMPILE_DEFINITIONS PLUGIN_EXPORT)
set_target_properties(PlayerPlugin PROPERTIES SOLUTION_FOLDER Plugins)
@@ -14,7 +14,7 @@ include_directories(.)
add_library(SoundPlugin SHARED ${HEADER_FILES} ${SOURCE_FILES})
-set(LIBRARY_OUTPUT_PATH ../lib)
+set(LIBRARY_OUTPUT_PATH ${PLUGINS_OUTPUT_DIR})
set_target_properties(SoundPlugin PROPERTIES COMPILE_DEFINITIONS PLUGIN_EXPORT)
set_target_properties(SoundPlugin PROPERTIES SOLUTION_FOLDER Plugins)

0 comments on commit aa8662a

Please sign in to comment.