File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# "Target Usage Requirements" and "Generator Toolset selection"
33CMAKE_MINIMUM_REQUIRED ( VERSION 2.8.11 )
44
5- project ("AvsMod " )
5+ project ("avisynth+ " )
66
77# Avoid uselessly linking to unused libraries
88set (CMAKE_STANDARD_LIBRARIES "" CACHE STRING "" FORCE )
99set (CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE )
1010set (CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE )
1111
12+ option (ENABLE_PLUGINS "Build set of default external plugins" ON )
13+
1214if (CMAKE_CONFIGURATION_TYPES )
1315 set (CMAKE_CONFIGURATION_TYPES Debug Release RelWithDebInfo)
1416 set (CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES } " CACHE STRING "Reset the configurations to what we need" FORCE )
@@ -63,4 +65,15 @@ ELSE()
6365ENDIF ()
6466
6567add_subdirectory ("avs_core" )
66- add_subdirectory ("plugins" )
68+ if (ENABLE_PLUGINS)
69+ add_subdirectory ("plugins" )
70+ endif ()
71+
72+ # uninstall target
73+ configure_file (
74+ "${CMAKE_CURRENT_SOURCE_DIR } /cmake_uninstall.cmake.in"
75+ "${CMAKE_CURRENT_BINARY_DIR } /cmake_uninstall.cmake"
76+ IMMEDIATE @ONLY )
77+
78+ add_custom_target (uninstall
79+ COMMAND ${CMAKE_COMMAND } -P ${CMAKE_CURRENT_BINARY_DIR } /cmake_uninstall.cmake )
You can’t perform that action at this time.
0 commit comments