summarylogtreecommitdiffstats
path: root/CMakeLists.patch
blob: 587f4ebcc56956c52c277724428eda5bb68a4aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --color -urN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
+++ b/CMakeLists.txt	2021-10-20 15:55:00.203322328 +0200
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 2.8.9)
+project(nlite)
+
+include_directories(/usr/include/SDL2)
+
+INCLUDE(FindPkgConfig)
+PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
+PKG_SEARCH_MODULE(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
+PKG_SEARCH_MODULE(SDL2TTF REQUIRED SDL2_ttf)
+PKG_SEARCH_MODULE(CURL REQUIRED libcurl)
+PKG_SEARCH_MODULE(VLC REQUIRED libvlc)
+
+file(GLOB SOURCES "nlite/SDLVLC/*.cpp")
+
+add_executable(nlite ${SOURCES})
+
+INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} ${SDL2IMAGE_INCLUDE_DIRS} ${SDL2TTF_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${VLC_INCLUDE_DIRS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${SDL2_LIBRARIES} ${SDL2IMAGE_LIBRARIES} ${SDL2TTF_LIBRARIES} ${CURL_LIBRARIES} ${VLC_LIBRARIES})