Skip to content

Commit

Permalink
cmake: add an option to build tests (anrieff#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm authored Jul 15, 2021
1 parent 27b0028 commit cb5fdd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -27,4 +29,6 @@ endif(UNIX)
# Include subdirectories
add_subdirectory(libcpuid)
add_subdirectory(cpuid_tool)
add_subdirectory(tests)
if(LIBCPUID_TESTS)
add_subdirectory(tests)
endif()

0 comments on commit cb5fdd1

Please sign in to comment.