#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################ # include/Scol core library ############################################################ PROJECT(wiimote) # define header and source files for the library set (WIIMOTE_HEADER_FILES # None! ) if (Scol_STATIC) set (WIIMOTE_HEADER_FILES ${WIIMOTE_HEADER_FILES} include/loadScolWiimote.h) endif() set (WIIMOTE_SOURCE_FILES src/scolwiimote.cpp ) set (WIIYOURSELF_HEADER_FILES wiiyourself/wiimote.h wiiyourself/wiimote_common.h wiiyourself/wiimote_state.h ) set (WIIYOURSELF_SOURCE_FILES wiiyourself/wiimote.cpp ) scol_include_plugin("WIIMOTE" "${PROJECT_SOURCE_DIR}/include" "loadScolWiimote.h") # Add directories includes. include_directories(wiiyourself ${WDK_INCLUDE_DIRS}) # This is how visual studio directories (or filters) are generated. source_group(Header\ Files\\WiiYourself FILES ${WIIYOURSELF_HEADER_FILES}) # Same thing for sources files source_group(Source\ Files\\WiiYourself FILES ${WIIYOURSELF_SOURCE_FILES}) # Add definition for P4 optimizations, warnings removal. add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS) set(WIIMOTE_LIBRARIES ${WDK_LIBRARIES}) # setup Scol wiimote plugin target add_library(wiimote ${Scol_LIB_TYPE} ${WIIMOTE_HEADER_FILES} ${WIIMOTE_SOURCE_FILES} ${WIIYOURSELF_HEADER_FILES} ${WIIYOURSELF_SOURCE_FILES} ) add_dependencies(wiimote kernel) # set the dll version. #set_target_properties(wiimote PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(wiimote ${WIIMOTE_LIBRARIES}) # install Scol wiimote scol_config_plugin(wiimote) #install(FILES ${WIIYOURSELF_HEADER_FILES} DESTINATION include/SCOL/plugins/wiimote/wiiyourself)