1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

cmake: add an option to build tests (#153)

This commit is contained in:
SpaceIm 2021-07-16 00:46:09 +02:00 committed by GitHub
parent 27b002857a
commit cb5fdd1d86
No account linked to committer's email address

View file

@ -7,6 +7,8 @@ project(
LANGUAGES C CXX ASM_MASM
VERSION ${VERSION})
option(LIBCPUID_TESTS "Enable building tests" OFF)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 99)
@ -27,4 +29,6 @@ endif(UNIX)
# Include subdirectories
add_subdirectory(libcpuid)
add_subdirectory(cpuid_tool)
if(LIBCPUID_TESTS)
add_subdirectory(tests)
endif()