mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 18:42:28 +00:00
34 lines
723 B
CMake
34 lines
723 B
CMake
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")
|