chore(test): add test scaffolding

This commit is contained in:
fallenoak 2020-09-07 22:24:42 -05:00
parent ec1c5c8844
commit dc14e5bfa7
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
6 changed files with 17850 additions and 0 deletions

View file

@ -0,0 +1,34 @@
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
if(PLATFORM_MAC)
set_source_files_properties(${TEST_SOURCES}
PROPERTIES COMPILE_FLAGS "-x objective-c++"
)
add_executable(StormTest ${TEST_SOURCES})
target_link_libraries(StormTest
PRIVATE
storm
"-framework AppKit"
"-framework Carbon"
"-framework IOKit"
)
endif()
if(PLATFORM_LINUX OR PLATFORM_WIN)
add_executable(StormTest ${TEST_SOURCES})
target_link_libraries(StormTest
PRIVATE
storm
)
endif()
target_include_directories(StormTest
PRIVATE
${CMAKE_SOURCE_DIR}/storm
${CMAKE_SOURCE_DIR}/test
)
install(TARGETS StormTest DESTINATION "bin")