mirror of
https://github.com/geode-sdk/example-mod.git
synced 2025-03-29 06:29:41 -04: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)
|
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
|
# 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})
|
if (NOT DEFINED ENV{GEODE_SDK})
|
||||||
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
|
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
|
||||||
|
|
Loading…
Add table
Reference in a new issue