Keep build dir tidy by relocating Fortran modules

If we are building in-source, we don't want to have a bunch of output
files in the root directory; instead we put them in CMakeFiles/ where
all the rest of the object files go.
This commit is contained in:
Roland Kaufmann
2012-12-21 10:09:42 +01:00
parent 8c808e7262
commit 773e645ac0

View File

@@ -67,6 +67,7 @@ include (UseDynamicBoost)
# put libraries in lib/
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
set (CMAKE_Fortran_MODULE_DIRECTORY "${PROJECT_BINARY_DIR}/CMakeFiles")
# find all the source code (note that these variables have name after
# the target library and not the project). the documentation recommends