Skip to content

Commit

Permalink
Re-parent Juce header install path
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Mar 29, 2019
1 parent f8dcc44 commit 7cdd88f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ ELSE (WIN32)
ENDIF(UNIX)
ENDIF(WIN32)

# Include header directories
include_directories("JuceLibraryCode" "JuceLibraryCode/modules")

# List of modules to build (Extension based on OS)
FILE(GLOB JUCE_SOURCES
JuceLibraryCode/include_juce_*.${EXTENSION})
Expand All @@ -153,6 +150,13 @@ ADD_LIBRARY(openshot-audio SHARED
${JUCE_SOURCES}
)

# Include header directories
target_include_directories(openshot-audio PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode/modules>
$<INSTALL_INTERFACE:include/libopenshot-audio>
)

# Set SONAME and other library properties
set_target_properties(openshot-audio
PROPERTIES
Expand All @@ -176,7 +180,7 @@ set(LIB_INSTALL_DIR lib${LIB_SUFFIX})

# Install Files
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode/JuceHeader.h DESTINATION include/libopenshot-audio)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode DESTINATION include/libopenshot-audio FILES_MATCHING PATTERN "*.h")
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode/modules/ DESTINATION include/libopenshot-audio FILES_MATCHING PATTERN "*.h")
INSTALL(TARGETS openshot-audio DESTINATION ${LIB_INSTALL_DIR})

################### DOCUMENTATION ###################
Expand Down

0 comments on commit 7cdd88f

Please sign in to comment.