Commit 7317a6a6 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

Tests are now conditional

parent f25d0d90
Pipeline #101364 failed with stage
in 1 minute and 12 seconds
......@@ -2,13 +2,15 @@ cmake_minimum_required(VERSION 3.16)
project(emlabcpp)
include(CTest)
add_library(emlabcpp INTERFACE)
target_include_directories(emlabcpp INTERFACE include/)
if(BUILD_TESTING)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
if(BUILD_TESTING)
include(tests/tests.cmake)
endif()
endif()
install(TARGETS emlabcpp)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment