mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
cmake: add an option to build tests (#153)
This commit is contained in:
parent
27b002857a
commit
cb5fdd1d86
1 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,8 @@ project(
|
||||||
LANGUAGES C CXX ASM_MASM
|
LANGUAGES C CXX ASM_MASM
|
||||||
VERSION ${VERSION})
|
VERSION ${VERSION})
|
||||||
|
|
||||||
|
option(LIBCPUID_TESTS "Enable building tests" OFF)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
|
|
||||||
|
@ -27,4 +29,6 @@ endif(UNIX)
|
||||||
# Include subdirectories
|
# Include subdirectories
|
||||||
add_subdirectory(libcpuid)
|
add_subdirectory(libcpuid)
|
||||||
add_subdirectory(cpuid_tool)
|
add_subdirectory(cpuid_tool)
|
||||||
add_subdirectory(tests)
|
if(LIBCPUID_TESTS)
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue