pacman/lib/CMakeLists.txt

11 lines
459 B
CMake
Raw Normal View History

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
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
add_library(libpacman ${ sources })
target_include_directories(libpacman PUBLIC.)
target_link_libraries(libpacman PUBLIC fmt::fmt sfml - graphics sfml - window sfml - system OpenGL::OpenGL OpenGL::GLX)