Skip to content
This repository was archived by the owner on Sep 19, 2020. It is now read-only.

Commit d55ac49

Browse files
authored
Merge pull request Unity-Technologies#10 from illwieckz/cmake
build executables in cmake output dir, not in subdirectories
2 parents 85bab3d + e2c3cc5 commit d55ac49

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ set(CRUNCH_PROJECT_NAME crunch)
44
set(CRUNCH_LIBRARY_NAME crn)
55
set(CRUNCH_EXE_NAME crunch)
66

7-
project(${CRUNCH_PROJECT_NAME} )
7+
project(${CRUNCH_PROJECT_NAME})
88

99
option(BUILD_SHARED_LIBS "Build crunchlib as shared library and link executables against it." OFF)
1010
option(BUILD_EXAMPLES "Build examples." OFF)
1111

12+
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
13+
1214
if (BUILD_EXAMPLES)
13-
add_subdirectory(example1)
14-
add_subdirectory(example2)
15-
add_subdirectory(example3)
15+
add_subdirectory(example1 _example1)
16+
add_subdirectory(example2 _example2)
17+
add_subdirectory(example3 _example3)
1618
endif(BUILD_EXAMPLES)
1719

18-
add_subdirectory(crunch)
20+
add_subdirectory(crunch _crunch)
1921
add_subdirectory(crnlib)

0 commit comments

Comments
 (0)