From 4c1018236ce979ddb713440dac2038dfe28c0f79 Mon Sep 17 00:00:00 2001 From: Luca Sas Date: Mon, 14 Sep 2020 10:58:58 +0100 Subject: Update CMakeLists.txt --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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/") -- cgit v1.2.3