mirror of
https://github.com/geode-sdk/example-mod.git
synced 2024-11-24 08:18:04 -05:00
remove glob for source files
This commit is contained in:
parent
2d3b76ce36
commit
5538d21559
1 changed files with 4 additions and 8 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue