mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 10:32:29 +00:00
chore: initial commit
This commit is contained in:
commit
c955dd6531
16 changed files with 18109 additions and 0 deletions
31
test/CMakeLists.txt
Normal file
31
test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
|
||||
|
||||
if(WHOA_PLATFORM_MAC)
|
||||
set_source_files_properties(${TEST_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
|
||||
add_executable(TempestTest ${TEST_SOURCES})
|
||||
|
||||
target_link_libraries(TempestTest
|
||||
PRIVATE
|
||||
tempest
|
||||
"-framework AppKit"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WHOA_PLATFORM_LINUX OR WHOA_PLATFORM_WIN)
|
||||
add_executable(TempestTest ${TEST_SOURCES})
|
||||
|
||||
target_link_libraries(TempestTest
|
||||
PRIVATE
|
||||
tempest
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(TempestTest
|
||||
PRIVATE
|
||||
${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
install(TARGETS TempestTest DESTINATION "bin")
|
||||
2
test/Test.cpp
Normal file
2
test/Test.cpp
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include "test/Test.hpp"
|
||||
1
test/Test.hpp
Normal file
1
test/Test.hpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "test/catch.hpp"
|
||||
17802
test/catch.hpp
Normal file
17802
test/catch.hpp
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue