Go ahead and make the whole thing private.
@@ -164,7 +164,7 @@ endif()
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
find_package(LibCrypto REQUIRED)
-target_link_libraries(${PROJECT_NAME} PUBLIC LibCrypto::Crypto ${OS_LIBS} m)
+target_link_libraries(${PROJECT_NAME} PRIVATE LibCrypto::Crypto ${OS_LIBS} m)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/api> $<INSTALL_INTERFACE:include>)
@@ -192,7 +192,7 @@ if (BUILD_TESTING)
string(REGEX REPLACE ".+\\/(.+)\\.c" "\\1" test_case_name ${test_case})
add_executable(${test_case_name} ${test_case})
- target_link_libraries(${test_case_name} PRIVATE testss2n m pthread)
+ target_link_libraries(${test_case_name} PRIVATE testss2n LibCrypto::Crypto m pthread)
target_include_directories(${test_case_name} PRIVATE api)
target_include_directories(${test_case_name} PRIVATE ./)
target_include_directories(${test_case_name} PRIVATE tests)
