-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78571a8
commit e1b9eb7
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Recursive search and automatic re-configuration on adding or deleting source files. | ||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS common/*.cpp core/*.cpp gpu_mem/*.cpp) | ||
file(GLOB_RECURSE PF_SOURCE_FILES CONFIGURE_DEPENDS common/*.cpp core/*.cpp gpu_mem/*.cpp) | ||
|
||
file(GLOB SOURCE_FILES ${SOURCE_FILES} gpu/*.cpp) | ||
file(GLOB PF_SOURCE_FILES ${PF_SOURCE_FILES} gpu/*.cpp) | ||
|
||
if (PATHFINDER_VULKAN_SUPPORT) | ||
file(GLOB SOURCE_FILES ${SOURCE_FILES} gpu/vk/*.cpp) | ||
file(GLOB PF_SOURCE_FILES ${PF_SOURCE_FILES} gpu/vk/*.cpp) | ||
else () | ||
file(GLOB SOURCE_FILES ${SOURCE_FILES} gpu/gl/*.cpp) | ||
file(GLOB PF_SOURCE_FILES ${PF_SOURCE_FILES} gpu/gl/*.cpp) | ||
endif () | ||
|
||
# Compile as static library. | ||
add_library(pathfinder ${SOURCE_FILES} ../third_party/glad/src/gl.c) | ||
add_library(pathfinder STATIC ${PF_SOURCE_FILES} ../third_party/glad/src/gl.c) |