Skip to content

Commit

Permalink
Include official plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed May 15, 2024
1 parent a04188a commit a6ff403
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ENDIF()

PROJECT(devue)

OPTION(DEVUE_BUILD_PLUGINS "Build plugins." ON)

SET(DEVUE_LIBRARIES_DIR "${CMAKE_SOURCE_DIR}/libraries")

IF(WIN32 AND "${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
Expand Down Expand Up @@ -49,5 +51,14 @@ IF(WIN32 AND "${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
"${DEVUE_PLUGIN_CORE_INCLUDES}/*.hpp"
)

IF(DEVUE_BUILD_PLUGINS)
SET_TARGET_PROPERTIES(devue_official_plugin
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plugins"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugins"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/plugins"
)
ENDIF()

ADD_SUBDIRECTORY("source")
ENDIF()
14 changes: 13 additions & 1 deletion dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,19 @@ SET(BUILD_TESTS OFF CACHE BOOL "" FORCE)

FetchContent_Declare(
cmrc
URL "https://github.com/vector-of-bool/cmrc/archive/refs/heads/master.zip"
URL https://github.com/vector-of-bool/cmrc/archive/refs/heads/master.zip
)

FetchContent_MakeAvailable(cmrc)

###############################################################################
## devue_official_plugin

IF(DEVUE_BUILD_PLUGINS)
FetchContent_Declare(
devue_official_plugin
URL https://github.com/dvsku/devue_official_plugin/archive/27dbeca6b0af99f5ac84882e2a09ff4da637a410.zip
)

FetchContent_MakeAvailable(devue_official_plugin)
ENDIF()

0 comments on commit a6ff403

Please sign in to comment.