mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
don't build tests unless we're building all-* or *-test builds
This commit is contained in:
parent
892e2b14da
commit
685dd4a5d3
@ -251,4 +251,7 @@ endif()
|
|||||||
include(version.cmake)
|
include(version.cmake)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
if(BUILD_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
endif()
|
16
Makefile
16
Makefile
@ -8,9 +8,12 @@ build-debug: cmake-debug
|
|||||||
cd build/debug && $(MAKE)
|
cd build/debug && $(MAKE)
|
||||||
|
|
||||||
test-debug: build-debug
|
test-debug: build-debug
|
||||||
cd build/debug && $(MAKE) test
|
mkdir -p build/debug
|
||||||
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) test
|
||||||
|
|
||||||
all-debug: build-debug
|
all-debug:
|
||||||
|
mkdir -p build/debug
|
||||||
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE)
|
||||||
|
|
||||||
cmake-release:
|
cmake-release:
|
||||||
mkdir -p build/release
|
mkdir -p build/release
|
||||||
@ -20,13 +23,16 @@ build-release: cmake-release
|
|||||||
cd build/release && $(MAKE)
|
cd build/release && $(MAKE)
|
||||||
|
|
||||||
test-release: build-release
|
test-release: build-release
|
||||||
cd build/release && $(MAKE) test
|
mkdir -p build/release
|
||||||
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) test
|
||||||
|
|
||||||
all-release: build-release
|
all-release:
|
||||||
|
mkdir -p build/release
|
||||||
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
||||||
|
|
||||||
release-static:
|
release-static:
|
||||||
mkdir -p build/release
|
mkdir -p build/release
|
||||||
cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D CMAKE_BUILD_TYPE=Release ../.. && $(MAKE)
|
cd build/release && cmake -D STATIC=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
||||||
|
Loading…
Reference in New Issue
Block a user