CMake: Populate list of required include directories for library targets
PUBLIC items will populate the INTERFACE_INCLUDE_DIRECTORIES property of <target>. This property is a list of public include directories requirements for a library. Targets may populate this property to publish the include directories required to compile against the headers for the target.
This commit is contained in:
Vendored
+1
-1
@@ -18,7 +18,7 @@ list(REMOVE_ITEM LUA "${CMAKE_CURRENT_SOURCE_DIR}/lua/lua/lua.c") # Do not co
|
||||
set(ENGINE_SOURCES ${GLAD} ${LUA})
|
||||
|
||||
add_library(${ENGINE}-dependencies ${ENGINE_SOURCES})
|
||||
target_include_directories(${ENGINE}-dependencies PRIVATE
|
||||
target_include_directories(${ENGINE}-dependencies PUBLIC
|
||||
"glad/include"
|
||||
"lua")
|
||||
target_link_libraries(${ENGINE}-dependencies glfw ruc)
|
||||
|
||||
Reference in New Issue
Block a user