17 lines
413 B
CMake
17 lines
413 B
CMake
set(SRCS Src/ir.cpp
|
|
Src/wiiuse.cpp)
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
set(SRCS ${SRCS} Src/io_osx.m)
|
|
elseif((${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND BLUEZ_FOUND)
|
|
set(SRCS ${SRCS} Src/io_nix.cpp)
|
|
set(LIBS ${LIBS} bluetooth)
|
|
elseif(WIN32)
|
|
set(SRCS ${SRCS} Src/io_win.cpp)
|
|
else()
|
|
set(SRCS ${SRCS} Src/io_dummy.cpp)
|
|
endif()
|
|
|
|
add_library(wiiuse STATIC ${SRCS})
|
|
target_link_libraries(wiiuse ${LIBS})
|