mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
36
src/util/CMakeLists.txt
Normal file
36
src/util/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
file(GLOB PRIVATE_SOURCES "*.cpp")
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
file(GLOB MAC_SOURCES "*.mm")
|
||||
|
||||
set_source_files_properties(${MAC_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
|
||||
list(APPEND PRIVATE_SOURCES ${MAC_SOURCES})
|
||||
endif()
|
||||
|
||||
add_library(util STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(util
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
)
|
||||
|
||||
target_link_libraries(util
|
||||
PUBLIC
|
||||
freetype-2.0
|
||||
lua-5.1
|
||||
common
|
||||
storm
|
||||
tempest
|
||||
)
|
||||
|
||||
if(WHOA_SYSTEM_LINUX OR WHOA_SYSTEM_MAC)
|
||||
target_link_libraries(util
|
||||
PRIVATE
|
||||
Threads::Threads
|
||||
)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue