pacman/scaling-lib/CMakeLists.txt
2021-07-08 10:18:36 +02:00

12 lines
380 B
CMake

find_package(SFML COMPONENTS COMPONENTS window graphics CONFIG REQUIRED)
add_library(scaling-lib ${sources})
target_include_directories(scaling-lib PUBLIC .)
target_link_libraries(scaling-lib PUBLIC sfml-graphics)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
target_sources(scaling-lib PRIVATE Scaling.mm)
else()
target_sources(scaling-lib PRIVATE Scaling.cpp)
endif ()