Make includes per-target.
This commit is contained in:
parent
52640ed8f9
commit
8ac71dc021
|
@ -3,9 +3,11 @@ project(libds)
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY C_STANDARD 90)
|
set_property(GLOBAL PROPERTY C_STANDARD 90)
|
||||||
ADD_COMPILE_OPTIONS(-pedantic -Wall)
|
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)
|
add_executable(libds src/main.c)
|
||||||
|
|
||||||
|
target_include_directories(ds PUBLIC include)
|
||||||
|
target_include_directories(libds PUBLIC include)
|
||||||
|
|
||||||
target_link_libraries(libds ds)
|
target_link_libraries(libds ds)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user