diff --git a/CMakeLists.txt b/CMakeLists.txt index 95e1cad2fe93a9a0e78f4e3cb83dac361d043fd7..02226e23e976fa7d081e4310779cc8dc77129338 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,8 +48,8 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -gdwarf-2 -msse4.2 -mfma") add_subdirectory(deps) # api -aux_source_directory(include/client API_SRC) -add_library(api INTERFACE ${API_SRC}) +add_library(api INTERFACE) +target_include_directories(api INTERFACE "include/client") # src add_subdirectory(source) diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt index 51d7965b064122cba9eb87d370be3040a4e199a4..d03231fcfbcbdd9fdedab59c0b7c82e8195d5936 100644 --- a/source/common/CMakeLists.txt +++ b/source/common/CMakeLists.txt @@ -9,5 +9,5 @@ target_link_libraries( common PUBLIC os PUBLIC util - PUBLIC api + INTERFACE api ) \ No newline at end of file