mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
chore: initial commit
This commit is contained in:
965 files changed
+264882
No files matched your search
@@ -0,0 +1,45 @@
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
file(GLOB PRIVATE_SOURCES "Test.cpp" "stub/Mac.mm" "gx/*.cpp" "util/*.cpp")
|
||||
|
||||
set_source_files_properties(${PRIVATE_SOURCES}
|
||||
PROPERTIES COMPILE_FLAGS "-x objective-c++"
|
||||
)
|
||||
|
||||
add_executable(WhoaTest ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(WhoaTest
|
||||
PRIVATE
|
||||
client
|
||||
event
|
||||
gx
|
||||
util
|
||||
"-framework AppKit"
|
||||
"-framework Carbon"
|
||||
"-framework IOKit"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_LINUX)
|
||||
file(GLOB PRIVATE_SOURCES "Test.cpp" "gx/*.cpp" "util/*.cpp")
|
||||
|
||||
add_executable(WhoaTest ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(WhoaTest
|
||||
PRIVATE
|
||||
client
|
||||
event
|
||||
gx
|
||||
util
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(WhoaTest
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/vendor/catch2-2.13.10
|
||||
)
|
||||
|
||||
# Windows executables yet to be done
|
||||
if(WHOA_SYSTEM_MAC OR WHOA_SYSTEM_LINUX)
|
||||
install(TARGETS WhoaTest DESTINATION "bin")
|
||||
endif()
|
||||
Reference in new issue
Block a user