mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
45
test/CMakeLists.txt
Normal file
45
test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
if(WHOA_SYSTEM_MAC)
|
||||
file(GLOB PRIVATE_SOURCES "Test.cpp" "stub/Mac.mm" "gx/*.cpp" "util/*.cpp")
|
||||
|
||||
set_source_files_properties(${PRIVATE_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
|
||||
add_executable(WhoaTest ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(WhoaTest
|
||||
PRIVATE
|
||||
client
|
||||
event
|
||||
gx
|
||||
util
|
||||
"-framework AppKit"
|
||||
"-framework Carbon"
|
||||
"-framework IOKit"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_LINUX)
|
||||
file(GLOB PRIVATE_SOURCES "Test.cpp" "gx/*.cpp" "util/*.cpp")
|
||||
|
||||
add_executable(WhoaTest ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(WhoaTest
|
||||
PRIVATE
|
||||
client
|
||||
event
|
||||
gx
|
||||
util
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(WhoaTest
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/vendor/catch2-2.13.10
|
||||
)
|
||||
|
||||
# Windows executables yet to be done
|
||||
if(WHOA_SYSTEM_MAC OR WHOA_SYSTEM_LINUX)
|
||||
install(TARGETS WhoaTest DESTINATION "bin")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue