set(INCROOT ${CMAKE_SOURCE_DIR}/include/SFML/Window) set(SRCROOT ${CMAKE_SOURCE_DIR}/src/SFML/Window) # all source files set(SRC ${INCROOT}/Export.h ${SRCROOT}/Context.cpp ${SRCROOT}/ContextStruct.h ${INCROOT}/Context.h ${INCROOT}/Event.h ${SRCROOT}/Joystick.cpp ${INCROOT}/Joystick.h ${SRCROOT}/Keyboard.cpp ${INCROOT}/Keyboard.h ${SRCROOT}/Mouse.cpp ${INCROOT}/Mouse.h ${INCROOT}/Types.h ${SRCROOT}/VideoMode.cpp ${INCROOT}/VideoMode.h ${SRCROOT}/Window.cpp ${SRCROOT}/WindowStruct.h ${INCROOT}/Window.h ${INCROOT}/WindowHandle.h ) # define the csfml-window target csfml_add_library(csfml-window SOURCES ${SRC} DEPENDS ${SFML_WINDOW_LIBRARY} ${SFML_SYSTEM_LIBRARY})