Skip to content

Commit

Permalink
make test and example not build by default
Browse files Browse the repository at this point in the history
  • Loading branch information
corporal9736 committed May 31, 2022
1 parent 261474d commit 1840453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project(pico)

option(PICO_TEST "build test" ON)
option(PICO_EXAMPLE "build example" ON)
option(PICO_TEST "build test" OFF)
option(PICO_EXAMPLE "build example" OFF)

if(PICO_TEST)
add_subdirectory(test)
Expand All @@ -13,4 +13,4 @@ if(PICO_EXAMPLE)
endif()

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

0 comments on commit 1840453

Please sign in to comment.