From ec90c0ce3864bb4230c8d1feeca3f3c35ad17967 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Sat, 30 May 2015 20:12:42 +0200 Subject: [PATCH] add default paths and add src/ subdir --- bootstrap.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstrap.py b/bootstrap.py index 03dd12d..191c13d 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -182,6 +182,11 @@ def gen_cmakelists(config, relative_path, list_of_modules): s.append('# places during configuration and build') s.append('find_package(PythonInterp REQUIRED)') + s.append('\n') + s.append('# default paths') + s.append('set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)') + s.append('set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)') + s.append('\n') s.append('# determine program version from file, example: "14.1"') s.append('# the reason why this information is stored') @@ -208,6 +213,9 @@ def gen_cmakelists(config, relative_path, list_of_modules): for m in list_of_modules: s.append('include(%s)' % os.path.splitext(m)[0]) + s.append('\n') + s.append('add_subdirectory(${PROJECT_SOURCE_DIR}/src)') + return s