ensure version.h is in the include path

This commit is contained in:
Grant Limberg 2020-06-12 14:57:41 -07:00
parent 760607f58a
commit e46a342e17
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
3 changed files with 20 additions and 0 deletions

View file

@ -102,4 +102,9 @@ endif(WIN32)
add_executable(zt_core_tests Tests.h Tests.cpp)
target_compile_definitions(zt_core_tests PRIVATE ZT_ENABLE_TESTS=1 ZT_STANDALONE_TESTS=1)
target_include_directories(
${PROJECT_NAME}
PUBLIC
${CMAKE_BINARY_DIR}/core
)
target_link_libraries(zt_core_tests zt_core ${libs})

View file

@ -43,8 +43,18 @@ endif(WIN32)
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
target_include_directories(
${PROJECT_NAME}
PUBLIC
${CMAKE_BINARY_DIR}/core
)
if(APPLE)
add_executable(MacEthernetTapAgent MacEthernetTapAgent.c MacEthernetTapAgent.h)
target_include_directories(MacEthernetTapAgent PRIVATE ${CMAKE_BINARY_DIR})
target_include_directories(
MacEthernetTapAgent
PUBLIC
${CMAKE_BINARY_DIR}/core
)
endif(APPLE)

View file

@ -11,3 +11,8 @@ set(headers
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
target_include_directories(
${PROJECT_NAME}
PUBLIC
${CMAKE_BINARY_DIR}/core
)