mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
chore: initial commit
This commit is contained in:
commit
69a95ae405
28 changed files with 18574 additions and 0 deletions
31
test/CMakeLists.txt
Normal file
31
test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
set_source_files_properties(${TEST_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
|
||||
add_executable(CommonTest ${TEST_SOURCES})
|
||||
|
||||
target_link_libraries(CommonTest
|
||||
PRIVATE
|
||||
common
|
||||
"-framework AppKit"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_LINUX OR WHOA_SYSTEM_WIN)
|
||||
add_executable(CommonTest ${TEST_SOURCES})
|
||||
|
||||
target_link_libraries(CommonTest
|
||||
PRIVATE
|
||||
common
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(CommonTest
|
||||
PRIVATE
|
||||
${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
install(TARGETS CommonTest DESTINATION "bin")
|
||||
Loading…
Add table
Add a link
Reference in a new issue