1 2CMAKE_MINIMUM_REQUIRED(VERSION 3.13...3.20) 3 4project(plugin_filesource) 5 6include_directories( 7 ${TOP_DIR}/engine 8 ${TOP_DIR}/engine/foundation 9 ${TOP_DIR}/engine/plugin 10) 11 12set(BUILD_PLUGIN_FILE_SOURCE_SHARED ON) 13 14if (BUILD_PLUGIN_FILE_SOURCE_SHARED) 15 add_library(plugin_filesource SHARED ./file_source_plugin.cpp ../../../common/plugin_buffer.cpp ../../../../utils/utils.cpp) 16else() 17 add_library(plugin_filesource STATIC ./file_source_plugin.cpp ../../../common/plugin_buffer.cpp) 18endif() 19 20message("------------------ BUILD plugin_filesource ------------------") 21install(TARGETS plugin_filesource DESTINATION "${CMAKE_BINARY_DIR}/bin/plugins/") 22