Browse Source

SFML2 sample works

Michael 7 years ago
parent
commit
e6f8240363
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Build/CMakeLists.txt
  2. 1 1
      Samples/basic/sfml2/src/main.cpp

+ 1 - 1
Build/CMakeLists.txt

@@ -678,7 +678,7 @@ endif(NOT BUILD_FRAMEWORK)
 	endif()
 	endif()
 
 
 	message("-- Can SFML 2.x sample be built")
 	message("-- Can SFML 2.x sample be built")
-	find_package(SFML 2 COMPONENTS graphics window system)
+	find_package(SFML 2 COMPONENTS graphics window system main)
 	if(NOT SFML_FOUND)
 	if(NOT SFML_FOUND)
 		message("-- Can SFML 2.x sample be built - no")
 		message("-- Can SFML 2.x sample be built - no")
 	else()
 	else()

+ 1 - 1
Samples/basic/sfml2/src/main.cpp

@@ -71,7 +71,7 @@ int main(int argc, char **argv)
 
 
 	// NOTE: if fonts and rml are not found you'll probably have to adjust
 	// NOTE: if fonts and rml are not found you'll probably have to adjust
 	// the path information in the string
 	// the path information in the string
-	ShellFileInterface FileInterface("../../assets/");
+	ShellFileInterface FileInterface("../Samples/assets/");
 
 
 	if(!MyWindow.isOpen())
 	if(!MyWindow.isOpen())
 		return 1;
 		return 1;