2021-06-20 16:52:34 +00:00
|
|
|
find_package(SFML COMPONENTS COMPONENTS window graphics system CONFIG REQUIRED)
|
|
|
|
find_package(fmt REQUIRED)
|
|
|
|
find_package(OpenGL REQUIRED COMPONENTS OpenGL GLX)
|
2021-06-16 13:59:52 +00:00
|
|
|
|
2021-06-20 16:52:34 +00:00
|
|
|
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
|
2021-06-16 13:18:00 +00:00
|
|
|
|
2021-06-20 16:52:34 +00:00
|
|
|
add_library(libpacman ${ sources })
|
2021-06-16 13:18:00 +00:00
|
|
|
|
2021-06-20 16:52:34 +00:00
|
|
|
target_include_directories(libpacman PUBLIC.)
|
|
|
|
target_link_libraries(libpacman PUBLIC fmt::fmt sfml - graphics sfml - window sfml - system OpenGL::OpenGL OpenGL::GLX)
|