Skip to content

Commit b9f1c16

Browse files
committed
Move third-party libraries to "vendor" dir.
1 parent 94fee67 commit b9f1c16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+6265
-6249
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ endif()
187187
include(features.cmake)
188188

189189
add_subdirectory(presets)
190+
add_subdirectory(vendor)
190191
add_subdirectory(src)
191192

192193
if(BUILD_TESTING)

src/libprojectM/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ target_include_directories(projectM_main
8585
"${CMAKE_SOURCE_DIR}/src"
8686
"${CMAKE_CURRENT_SOURCE_DIR}"
8787
"${CMAKE_CURRENT_SOURCE_DIR}/Renderer"
88-
"${CMAKE_CURRENT_SOURCE_DIR}/Renderer/hlslparser/src"
88+
"${CMAKE_SOURCE_DIR}/vendor/hlslparser/src"
8989
"${CMAKE_CURRENT_SOURCE_DIR}/MilkdropPresetFactory"
9090
"${MSVC_EXTRA_INCLUDE_DIR}"
9191
)

src/libprojectM/MilkdropPresetFactory/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ target_link_libraries(MilkdropPresetFactory
5050
PRIVATE
5151
libprojectM::API # For export header
5252
PUBLIC
53+
omptl
5354
GLM::GLM
5455
${PROJECTM_OPENGL_LIBRARIES}
5556
)

src/libprojectM/Renderer/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
add_subdirectory(hlslparser)
2-
add_subdirectory(SOIL2)
3-
41
add_library(Renderer OBJECT
52
BeatDetect.cpp
63
BeatDetect.hpp

src/libprojectM/Renderer/PerPixelMesh.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <math.h>
22
#include <algorithm>
33
#include "PerPixelMesh.hpp"
4-
#include "omptl/omptl"
5-
#include "omptl/omptl_algorithm"
4+
#include <omptl/omptl>
5+
#include <omptl/omptl_algorithm>
66

77
PerPixelMesh::PerPixelMesh(int _width, int _height) : width(_width), height(_height), size (_width * _height),
88
p(_width * _height, PixelPoint(0,0)),

src/libprojectM/Renderer/Renderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <cstdio>
99
#include <cstring>
1010
#include <cassert>
11-
#include "omptl/omptl_algorithm"
11+
#include <omptl/omptl_algorithm>
1212
#include <glm/gtc/matrix_transform.hpp>
1313
#include <glm/gtc/type_ptr.hpp>
1414
#include <chrono>

src/libprojectM/Renderer/hlslparser/.travis.yml

-7
This file was deleted.

vendor/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_subdirectory(hlslparser)
2+
add_subdirectory(omptl)
3+
add_subdirectory(SOIL2)

src/libprojectM/Renderer/SOIL2/CMakeLists.txt vendor/SOIL2/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ add_library(SOIL2 OBJECT
2323

2424
target_include_directories(SOIL2
2525
PUBLIC
26-
"${CMAKE_CURRENT_SOURCE_DIR}"
26+
"."
2727
)
2828

2929
target_link_libraries(SOIL2

0 commit comments

Comments
 (0)