summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6eba3bf..91ef6c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,5 +9,6 @@ set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
add_subdirectory(libs/raylib)
-add_executable(raylib_template src/main.c)
-target_link_libraries(raylib_template PRIVATE raylib) \ No newline at end of file
+add_executable(${CMAKE_PROJECT_NAME} src/main.c)
+target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE raylib)
+target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC ASSET_PATH="${CMAKE_CURRENT_SOURCE_DIR}/assets/")