set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp")

link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}")
add_executable(paddleball
	ball.cpp
	computer.cpp
	main.cpp
	paddle.cpp
	score.cpp)

set_property(TARGET paddleball APPEND PROPERTY COMPILE_FLAGS "-I${INC} -I${SDL_INCLUDE_DIR} ${MIXER_FLAGS} ${IMAGE_FLAGS}")

set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp")

link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}")
add_executable(paddleball
	ball.cpp
	computer.cpp
	main.cpp
	paddle.cpp
	score.cpp
	ball.h
	computer.h
	paddle.h
	score.h)

set_property(TARGET paddleball APPEND PROPERTY COMPILE_FLAGS "-I${INC} -I${SDL_INCLUDE_DIR} ${MIXER_FLAGS} ${IMAGE_FLAGS}")

Include headers in add_executable since it might be nice to have them in say Code::Blocks projects.
Include headers in add_executable since it might be nice to have them in
say Code::Blocks projects.

Signed-off-by: Harley Laue <c8a0c029c1a7cee0af4c3de9665bbb05f63c8770@gmail.com>
