mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +00:00
41 lines
908 B
CMake
41 lines
908 B
CMake
file(GLOB_RECURSE TEST_SOURCES
|
|
"*.cpp"
|
|
"big/*.cpp"
|
|
)
|
|
|
|
if(WHOA_SYSTEM_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(WHOA_SYSTEM_LINUX OR WHOA_SYSTEM_WIN)
|
|
add_executable(StormTest ${TEST_SOURCES})
|
|
|
|
target_link_libraries(StormTest
|
|
PRIVATE
|
|
storm
|
|
)
|
|
endif()
|
|
|
|
target_include_directories(StormTest
|
|
PRIVATE
|
|
${PROJECT_SOURCE_DIR}
|
|
)
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
include(CodeCoverage)
|
|
target_compile_options(${PROJECT_NAME} PRIVATE -g -fprofile-arcs -ftest-coverage -O0)
|
|
endif()
|
|
|
|
install(TARGETS StormTest DESTINATION "bin")
|