mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
* feat(app): add StormLib * feat(app): add OpenArchives * feat(util): update SFile to work with StormLib * feat(app): update SFile * feat(util): update SFile with logging (Windows only) * feat(ui): implemented termination w/o notice * chore(build): update StormLib * chore(util): replace std::string with SStr* functions * fix(stormlib): dwFlags argument for SFileOpenPatchArchive * chore(ui): add Script_* stubs * chore(util): clean up SFile::OpenEx * chore(build): update StormLib --------- Co-authored-by: Phaneron <superp00t@tutanota.com>
40 lines
672 B
CMake
40 lines
672 B
CMake
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
|
|
stormlib-9
|
|
bc
|
|
common
|
|
storm
|
|
tempest
|
|
)
|
|
|
|
if(WHOA_SYSTEM_LINUX OR WHOA_SYSTEM_MAC)
|
|
target_link_libraries(util
|
|
PRIVATE
|
|
Threads::Threads
|
|
)
|
|
endif()
|