Compare commits
1 Commits
ea6777f7ea
...
30bd3d0526
Author | SHA1 | Date |
---|---|---|
mandlm | 30bd3d0526 |
|
@ -1,2 +1,3 @@
|
||||||
/build
|
/.build
|
||||||
/.cache
|
/.cache
|
||||||
|
/bin
|
||||||
|
|
|
@ -31,6 +31,12 @@ target_include_directories(
|
||||||
|
|
||||||
target_link_libraries(book_exercises PRIVATE chapter_02)
|
target_link_libraries(book_exercises PRIVATE chapter_02)
|
||||||
|
|
||||||
|
set_target_properties(
|
||||||
|
book_exercises
|
||||||
|
PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
|
||||||
|
|
||||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
cmake -S . -B build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
|
cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
cmake --build build
|
cmake --build .build
|
||||||
|
|
Loading…
Reference in New Issue