Add a quick and dirty cmake build

This commit is contained in:
Ryan Pavlik
2010-07-22 17:09:13 -05:00
parent 1cea14c661
commit db3c0e1e7b
2 changed files with 100 additions and 0 deletions

51
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,51 @@
set(SOURCES
classic.c
dynamics.c
events.c
guitar_hero_3.c
io.c
ir.c
nunchuk.c
wiiuse.c
wiiboard.c
classic.h
definitions.h
dynamics.h
events.h
guitar_hero_3.h
io.h
ir.h
nunchuk.h
os.h
wiiuse_internal.h
wiiboard.h)
if(WIN32)
list(APPEND SOURCES io_win.c)
else()
list(APPEND SOURCES io_nix.c)
endif()
set(API
wiiuse.h)
add_library(wiiuse SHARED ${SOURCES} ${API})
target_link_libraries(wiiuse m bluetooth)
set_property(TARGET
wiiuse
PROPERTY
PUBLIC_HEADER
${API})
install(TARGETS
wiiuse
RUNTIME
DESTINATION
bin
LIBRARY
DESTINATION
lib
PUBLIC_HEADER
DESTINATION
include)