3 add_subdirectory( scale )
4 add_subdirectory( utils )
5 add_subdirectory( themes )
9 include_directories(${PNG_PNG_INCLUDE_DIR})
11 include (CheckCXXSourceCompiles)
12 CHECK_CXX_SOURCE_COMPILES(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" X86_MMX_FOUND)
14 ########### next target ###############
34 set( ksplashx_SRCS ${ksplashx_SRCS}
36 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
37 COMMAND gcc -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
38 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
39 set( ksplashx_EXTRA_SRCS ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o )
40 ADD_DEFINITIONS( -DHAVE_X86_MMX )
41 endif( X86_MMX_FOUND2 )
43 add_executable( ksplashx ${ksplashx_SRCS} ${ksplashx_EXTRA_SRCS} )
44 target_link_libraries( ksplashx ${X11_LIBRARIES} ${PNG_LIBRARIES})
45 if( X11_Xinerama_FOUND )
46 target_link_libraries( ksplashx ${X11_Xinerama_LIB} )
47 endif( X11_Xinerama_FOUND )
48 install( TARGETS ksplashx ${INSTALL_TARGETS_DEFAULT_ARGS} )