Skip to content

Commit 752319a

Browse files
PinterfPinterf
authored andcommitted
CMakeList: (qyot27) project name AvsMod->avisynth+, ENABLE_PLUGINS, uninstall target
1 parent 3249b57 commit 752319a

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
# "Target Usage Requirements" and "Generator Toolset selection"
33
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.11 )
44

5-
project("AvsMod")
5+
project("avisynth+")
66

77
# Avoid uselessly linking to unused libraries
88
set(CMAKE_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
99
set(CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
1010
set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
1111

12+
option(ENABLE_PLUGINS "Build set of default external plugins" ON)
13+
1214
if(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()
6365
ENDIF()
6466

6567
add_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)

0 commit comments

Comments
 (0)