2010-11-13 19:15:43 +00:00
|
|
|
set(SRCS Src/ir.cpp
|
|
|
|
Src/wiiuse.cpp)
|
2010-11-01 15:47:02 +00:00
|
|
|
|
2010-11-17 01:03:39 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2010-11-01 15:47:02 +00:00
|
|
|
set(SRCS ${SRCS} Src/io_osx.m)
|
2010-11-17 01:03:39 +00:00
|
|
|
elseif((${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND BLUEZ_FOUND)
|
2010-11-13 19:15:43 +00:00
|
|
|
set(SRCS ${SRCS} Src/io_nix.cpp)
|
2010-11-01 15:47:02 +00:00
|
|
|
set(LIBS ${LIBS} bluetooth)
|
|
|
|
elseif(WIN32)
|
2010-11-13 19:15:43 +00:00
|
|
|
set(SRCS ${SRCS} Src/io_win.cpp)
|
2010-11-08 02:51:31 +00:00
|
|
|
else()
|
2010-11-13 19:15:43 +00:00
|
|
|
set(SRCS ${SRCS} Src/io_dummy.cpp)
|
2010-11-01 15:47:02 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(wiiuse STATIC ${SRCS})
|
|
|
|
target_link_libraries(wiiuse ${LIBS})
|