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:
+1
-3
@@ -1,14 +1,12 @@
|
||||
file(GLOB_RECURSE ENGINE_SOURCES "${ENGINE}/*.cpp")
|
||||
|
||||
add_library(${ENGINE} ${ENGINE_SOURCES})
|
||||
target_include_directories(${ENGINE} PRIVATE
|
||||
target_include_directories(${ENGINE} PUBLIC
|
||||
"."
|
||||
"../vendor/entt/src"
|
||||
"../vendor/glad/include"
|
||||
"../vendor/glfw/include"
|
||||
"../vendor/glm"
|
||||
"../vendor/json/include"
|
||||
"../vendor/lua"
|
||||
"../vendor/ruc/src"
|
||||
"../vendor/sol2/include"
|
||||
"../vendor/stb")
|
||||
|
||||
Reference in New Issue
Block a user