Skip to content

Commit

Permalink
development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
romanpauk committed Jul 30, 2024
1 parent 867849d commit 8863ccd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.19)
project(dingo)

option(DINGO_DEVELOPMENT_MODE "include additional targets for development" OFF)

add_library(dingo INTERFACE)
target_include_directories(dingo INTERFACE include)

Expand Down Expand Up @@ -45,7 +47,13 @@ target_sources(dingo INTERFACE
include/dingo/type_traits.h
)

if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/include/dingo
DESTINATION include
FILES_MATCHING PATTERN "*.h"
)

if(DINGO_DEVELOPMENT_MODE)
enable_testing()
include(FetchContent)
include(cmake/clang-format.cmake)
Expand Down

0 comments on commit 8863ccd

Please sign in to comment.