]> git.seodisparate.com - MeterForPulseAudio/commitdiff
Add SFML as a dependency
authorStephen Seo <seo.disparate@gmail.com>
Sat, 16 Jun 2018 10:55:08 +0000 (19:55 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 16 Jun 2018 10:55:08 +0000 (19:55 +0900)
CMakeLists.txt

index 8fdc328c2ca61ae112ed54ac3061c73f3d2c1d03..64245c8c815c32fd0fcd40062353c485da9666d8 100644 (file)
@@ -27,9 +27,13 @@ endif()
 
 target_compile_features(MeterForPulseAudio PUBLIC cxx_std_14)
 
+find_package(SFML 2 REQUIRED COMPONENTS graphics window system)
+target_include_directories(MeterForPulseAudio PUBLIC ${SFML_INCLUDE_DIR})
+target_link_libraries(MeterForPulseAudio PUBLIC
+    sfml-graphics sfml-window sfml-system)
+
 find_package(PulseAudio 11 REQUIRED)
 message(STATUS "Found PulseAudio ${PulseAudio_VERSION}")
-
 target_include_directories(MeterForPulseAudio PUBLIC ${PULSEAUDIO_INCLUDE_DIR})
 target_link_libraries(MeterForPulseAudio PUBLIC ${PULSEAUDIO_LIBRARY})