include(CheckIncludeFile)
check_include_files(linux/sonypi.h HAVE_KMILO_KVIAO)

set(CMAKE_MODULE_LINKER_FLAGS "")

add_subdirectory( kmilod ) 
#add_subdirectory( generic ) 
add_subdirectory( thinkpad ) 
add_subdirectory( asus ) 

MESSAGE(STATUS "system :<${CMAKE_SYSTEM_NAME}>")
if(HAVE_KMILO_KVIAO AND X11_XTest_FOUND AND X11_Xext_FOUND )
	add_subdirectory(kmilo_kvaio)
endif(HAVE_KMILO_KVIAO AND X11_XTest_FOUND AND X11_Xext_FOUND)		

if( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
   add_subdirectory(delli8k)
endif( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" ) 

message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: skipped subdir $(POWERBOOK_SUBDIR)")
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: skipped subdir $(POWERBOOK2_SUBDIR)")


########### install files ###############





