mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
31 lines
654 B
CMake
31 lines
654 B
CMake
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")
|