forked from TheBITLINK/desktop-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (31 loc) · 1.2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.5)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
endif()
project("Desktop Visualizer")
set(EXECUTABLE_NAME "tblvis")
add_executable(${EXECUTABLE_NAME} main.cpp)
# X11
find_package(X11)
include_directories(${X11_INCLUDE_DIR})
target_link_libraries(${EXECUTABLE_NAME} ${X11_LIBRARIES})
# SFML
find_package(SFML 2.5 COMPONENTS graphics window system REQUIRED)
target_link_libraries(${EXECUTABLE_NAME} sfml-graphics sfml-window sfml-system)
# fftw
#find_package(FFTW3)
#include_directories(${FFTW3_INCLUDE_DIRS})
#target_link_libraries(${EXECUTABLE_NAME} ${FFTW3_LIBRARIES})
#target_link_directories(${EXECUTABLE_NAME} PUBLIC ${FFTW3_LIBRARY_DIRS})
target_link_libraries(${EXECUTABLE_NAME} fftw3)
# PulseAudio
find_package(PulseAudio)
include_directories(${PULSEAUDIO_INCLUDE_DIR})
target_link_libraries(${EXECUTABLE_NAME} ${PULSEAUDIO_LIBRARY})
target_link_libraries(${EXECUTABLE_NAME} pulse-simple)
# pthread
find_package(Threads)
target_link_libraries (${EXECUTABLE_NAME} ${CMAKE_THREAD_LIBS_INIT})
# inih
target_link_libraries (${EXECUTABLE_NAME} INIReader)
install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)