Skip to content

Commit 7be00c1

Browse files
committed
do not clutter the source directory with output files
1 parent 3e1cd0e commit 7be00c1

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

.gitignore

-32
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,2 @@
1-
# Compiled Object files
2-
*.slo
3-
*.lo
4-
*.o
5-
*.obj
6-
7-
# Precompiled Headers
8-
*.gch
9-
*.pch
10-
11-
# Compiled Dynamic libraries
12-
*.so
13-
*.dylib
14-
*.dll
15-
16-
# Fortran module files
17-
*.mod
18-
*.smod
19-
20-
# Compiled Static libraries
21-
*.lai
22-
*.la
23-
*.a
24-
*.lib
25-
26-
# Executables
27-
*.exe
28-
*.out
29-
*.app
30-
311
# Ignored folders
32-
bin/
332
build/
34-
lib/

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ cmake_minimum_required (VERSION 2.6)
22
project (Example)
33

44
# Setting default folders
5-
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
6-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
7-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
5+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
6+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
7+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
88
# In CmakeModules I inlcude code coverage for c++
99
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules)
1010

run_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
showinfo "Running tests ..."
3030
make -j8 Example_coverage
31-
../bin/tests
31+
./bin/tests
3232
if [ $? -ne 0 ]; then
3333
error "Error: there are failed tests!"
3434
exit 4

0 commit comments

Comments
 (0)