2020-09-07 22:24:42 -05:00
|
|
|
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
|
2020-11-01 17:45:45 -06:00
|
|
|
${PROJECT_SOURCE_DIR}
|
2020-09-07 22:24:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install(TARGETS StormTest DESTINATION "bin")
|