diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 305171e..9bec234 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,7 @@ add_executable(Exponent target_link_libraries(Exponent PUBLIC glfw glm::glm) target_include_directories(Exponent PUBLIC ${CMAKE_SOURCE_DIR}/include) +target_compile_definitions(Exponent PUBLIC "$<$:DEBUG>") target_compile_definitions(Exponent PRIVATE GLFW_INCLUDE_NONE) file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/shaders/shader.frag" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/shaders/") diff --git a/src/main.cc b/src/main.cc index d847eac..69af39d 100644 --- a/src/main.cc +++ b/src/main.cc @@ -175,6 +175,8 @@ int main() { } glfwDestroyWindow(w); +#ifndef DEBUG glfwTerminate(); +#endif exit(EXIT_SUCCESS); }