mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cmake: build tests last
Keep -Werror for src, contrib and do not pass it for tests/
This commit is contained in:
parent
86e9de588c
commit
2051f89fbe
3 changed files with 13 additions and 9 deletions
|
@ -147,6 +147,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
option(BUILD_DOCUMENTATION "Build the Doxygen documentation." ON)
|
option(BUILD_DOCUMENTATION "Build the Doxygen documentation." ON)
|
||||||
|
option(BUILD_TESTS "Build tests." OFF)
|
||||||
|
|
||||||
# Check whether we're on a 32-bit or 64-bit system
|
# Check whether we're on a 32-bit or 64-bit system
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL "8")
|
if(CMAKE_SIZEOF_VOID_P EQUAL "8")
|
||||||
|
@ -704,20 +705,13 @@ if(SODIUM_LIBRARY)
|
||||||
set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}")
|
set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(BUILD_TESTS "Build tests." OFF)
|
add_subdirectory(contrib)
|
||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
if(BUILD_TESTS)
|
if(BUILD_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# warnings are cleared only for GCC on Linux
|
|
||||||
if (NOT (MINGW OR APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY))
|
|
||||||
add_compile_options("${WARNINGS_AS_ERRORS_FLAG}") # applies only to targets that follow
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_subdirectory(contrib)
|
|
||||||
add_subdirectory(src)
|
|
||||||
|
|
||||||
if(BUILD_DOCUMENTATION)
|
if(BUILD_DOCUMENTATION)
|
||||||
set(DOC_GRAPHS "YES" CACHE STRING "Create dependency graphs (needs graphviz)")
|
set(DOC_GRAPHS "YES" CACHE STRING "Create dependency graphs (needs graphviz)")
|
||||||
set(DOC_FULLGRAPHS "NO" CACHE STRING "Create call/callee graphs (large)")
|
set(DOC_FULLGRAPHS "NO" CACHE STRING "Create call/callee graphs (large)")
|
||||||
|
|
|
@ -26,5 +26,10 @@
|
||||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# warnings are cleared only for GCC on Linux
|
||||||
|
if (NOT (MINGW OR APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY))
|
||||||
|
add_compile_options("${WARNINGS_AS_ERRORS_FLAG}") # applies only to targets that follow
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(epee)
|
add_subdirectory(epee)
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,11 @@ if (WIN32 OR STATIC)
|
||||||
add_definitions(-DMINIUPNP_STATICLIB)
|
add_definitions(-DMINIUPNP_STATICLIB)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# warnings are cleared only for GCC on Linux
|
||||||
|
if (NOT (MINGW OR APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY))
|
||||||
|
add_compile_options("${WARNINGS_AS_ERRORS_FLAG}") # applies only to targets that follow
|
||||||
|
endif()
|
||||||
|
|
||||||
function (monero_private_headers group)
|
function (monero_private_headers group)
|
||||||
source_group("${group}\\Private"
|
source_group("${group}\\Private"
|
||||||
FILES
|
FILES
|
||||||
|
|
Loading…
Reference in a new issue