REFACTOR: Error handling
This commit is contained in:
+3
-2
@@ -25,8 +25,9 @@ target_include_directories(libvec
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
add_executable(test_runner src/main.c)
|
||||
add_executable(libvec_bin src/main.c)
|
||||
set_target_properties(libvec_bin PROPERTIES OUTPUT_NAME "libvec")
|
||||
|
||||
# Linking libvec privately gives test_runner access to include/libvec.h,
|
||||
# but strictly hides src/lib/char/char.h and src/lib/utils/utils.h.
|
||||
target_link_libraries(test_runner PRIVATE libvec)
|
||||
target_link_libraries(libvec_bin PRIVATE libvec)
|
||||
|
||||
Reference in New Issue
Block a user