mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
43
src/gx/CMakeLists.txt
Normal file
43
src/gx/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
file(GLOB GX_SOURCES
|
||||
"*.cpp"
|
||||
"buffer/*.cpp"
|
||||
"font/*.cpp"
|
||||
"shader/*.cpp"
|
||||
"texture/*.cpp"
|
||||
)
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
file(GLOB GLL_SOURCES "gll/*.cpp" "gll/*.mm")
|
||||
set_source_files_properties(${GLL_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
list(APPEND GX_SOURCES ${GLL_SOURCES})
|
||||
endif()
|
||||
|
||||
add_library(gx STATIC ${GX_SOURCES})
|
||||
|
||||
target_include_directories(gx
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
)
|
||||
|
||||
target_link_libraries(gx
|
||||
PRIVATE
|
||||
event
|
||||
math
|
||||
model
|
||||
ui
|
||||
util
|
||||
PUBLIC
|
||||
freetype-2.0
|
||||
storm
|
||||
tempest
|
||||
)
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
target_link_libraries(gx
|
||||
PRIVATE
|
||||
"-framework AppKit"
|
||||
"-framework OpenGL"
|
||||
)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue