diff --git a/CMakeLists.txt b/CMakeLists.txt index fba98ea..89c6703 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,12 +21,14 @@ endif() #------------------------------------------------------------------------------------------- add_definitions(-D_CHAR16T) -#------------------------------------------------------------------------------------------- -# Header only library -#------------------------------------------------------------------------------------------- -add_library(EABase INTERFACE) +if (NOT EABASE_BUILD_TESTS) + #------------------------------------------------------------------------------------------- + # Header only library + #------------------------------------------------------------------------------------------- + add_library(EABase INTERFACE) -#------------------------------------------------------------------------------------------- -# Include dirs -#------------------------------------------------------------------------------------------- -target_include_directories(EABase INTERFACE include/Common) + #------------------------------------------------------------------------------------------- + # Include dirs + #------------------------------------------------------------------------------------------- + target_include_directories(EABase INTERFACE include/Common) +endif()