remove glob for source files

This commit is contained in:
mat 2024-01-13 11:26:24 -03:00 committed by GitHub
parent 2d3b76ce36
commit 5538d21559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,15 +6,11 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
project(Template VERSION 1.0.0)
# Use GLOB_RECURSE instead of GLOB
# to recursively add all source files
# under src/
file(GLOB SOURCES
src/*.cpp
)
# Set up the mod binary
add_library(${PROJECT_NAME} SHARED ${SOURCES})
add_library(${PROJECT_NAME} SHARED
src/main.cpp
# Add your cpp files here
)
if (NOT DEFINED ENV{GEODE_SDK})
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")