From 1112e1e8e5f16377f7023387cf4b0da4f9d0a050 Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Sat, 15 Jun 2019 08:12:24 -0700 Subject: [PATCH 1/2] fixing include directory --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79adfbb..fba98ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,3 +21,12 @@ endif() #------------------------------------------------------------------------------------------- add_definitions(-D_CHAR16T) +#------------------------------------------------------------------------------------------- +# Header only library +#------------------------------------------------------------------------------------------- +add_library(EABase INTERFACE) + +#------------------------------------------------------------------------------------------- +# Include dirs +#------------------------------------------------------------------------------------------- +target_include_directories(EABase INTERFACE include/Common) From a3795dd83d3eba2dc6402f5bdd74b68a98195beb Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Sat, 15 Jun 2019 08:29:54 -0700 Subject: [PATCH 2/2] workaround --- CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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()