Automate add include path add dependented libs to target that dependents sftk.
This commit is contained in:
parent
afd7dc29ad
commit
442b7d065b
|
@ -16,9 +16,8 @@ set(SOURCES ${SOURCES} ${ROOT}/window.cpp)
|
|||
set(SOURCES ${SOURCES} ${CONTAINER}/container.cpp)
|
||||
|
||||
add_library(sftk SHARED ${SOURCES})
|
||||
target_link_libraries(sftk PRIVATE sfml-graphics sfml-audio sfml-network)
|
||||
target_link_libraries(sftk PUBLIC sfml-graphics sfml-audio sfml-network)
|
||||
target_include_directories(sftk PUBLIC include/)
|
||||
|
||||
add_executable(demo1 demo/demo1.cpp)
|
||||
target_link_libraries(demo1 PRIVATE sftk sfml-graphics sfml-audio sfml-network)
|
||||
target_include_directories(demo1 PRIVATE include/)
|
||||
target_link_libraries(demo1 PRIVATE sftk)
|
||||
|
|
Loading…
Reference in New Issue