Make includes per-target.

This commit is contained in:
Danila Fedorin 2016-12-21 16:45:29 -08:00
parent 52640ed8f9
commit 8ac71dc021

View File

@ -3,9 +3,11 @@ project(libds)
set_property(GLOBAL PROPERTY C_STANDARD 90)
ADD_COMPILE_OPTIONS(-pedantic -Wall)
include_directories(include)
add_library(ds src/libds.c src/vec.c src/ht.c)
add_library(ds STATIC src/libds.c src/vec.c src/ht.c)
add_executable(libds src/main.c)
target_include_directories(ds PUBLIC include)
target_include_directories(libds PUBLIC include)
target_link_libraries(libds ds)