Browse Source

More VS QoL improvements

Panagiotis Christopoulos Charitos 3 years ago
parent
commit
8e467889aa
2 changed files with 3 additions and 1 deletions
  1. 1 0
      AnKi/Core/App.cpp
  2. 2 1
      CMakeLists.txt

+ 1 - 0
AnKi/Core/App.cpp

@@ -298,6 +298,7 @@ Error App::initInternal(CString executableFilename, AllocAlignedCallback allocCb
 	// Add the location of the executable where the shaders are supposed to be
 	// Add the location of the executable where the shaders are supposed to be
 	StringAuto executableFname(m_heapAlloc);
 	StringAuto executableFname(m_heapAlloc);
 	ANKI_CHECK(getApplicationPath(executableFname));
 	ANKI_CHECK(getApplicationPath(executableFname));
+	ANKI_CORE_LOGI("Executable path is: %s", executableFname.cstr());
 	StringAuto shadersPath(m_heapAlloc);
 	StringAuto shadersPath(m_heapAlloc);
 	getParentFilepath(executableFname, shadersPath);
 	getParentFilepath(executableFname, shadersPath);
 	shadersPath.append(":");
 	shadersPath.append(":");

+ 2 - 1
CMakeLists.txt

@@ -19,7 +19,8 @@ endfunction()
 macro(anki_new_executable)
 macro(anki_new_executable)
 	if(NOT ANDROID)
 	if(NOT ANDROID)
 		add_executable(${ARGV})
 		add_executable(${ARGV})
-		anki_install_executable(${ARGV0})
+		set_target_properties(${ARGV0} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Bin)
+		#anki_install_executable(${ARGV0})
 	else()
 	else()
 		set(_SKIP TRUE)
 		set(_SKIP TRUE)
 		foreach(ARG ${ARGV})
 		foreach(ARG ${ARGV})