CMakeLists.txt: Use PROJECT_NAME variable instead of string literals

master
ANAND 2019-10-28 16:19:48 +05:30
parent a65d9782b5
commit 3ed7570894
No known key found for this signature in database
GPG Key ID: 3AD8A3C4A51AAB97
1 changed files with 2 additions and 4 deletions

View File

@ -18,9 +18,7 @@ include_directories(
libs/glad/include
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_executable(Magnetar
add_executable(${PROJECT_NAME}
src/main.cpp
@ -43,4 +41,4 @@ add_executable(Magnetar
libs/imgui/imgui.cpp
)
target_link_libraries(Magnetar ${OPENGL_gl_LIBRARY} glfw)
target_link_libraries(${PROJECT_NAME} ${OPENGL_gl_LIBRARY} glfw)