@@ -9,23 +9,15 @@ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
99set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
1010set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
1111
12- # It is possible to use pre-built SDK or build the Framework from source.
13- # In your project, you can choose either option or keep both.
14- set (REBELFORK_SDK "" CACHE STRING "Path to pre-built SDK" )
15- if ("${REBELFORK_SDK} " STREQUAL "" )
16- # Include common build scripts.
17- include (${CMAKE_SOURCE_DIR} /../rbfx/CMake/Modules/UrhoCommon.cmake )
18-
19- # Include the Framework to build.
20- add_subdirectory (../rbfx ${CMAKE_BINARY_DIR} /3rdParty/rbfx )
21- else ()
22- # Include common build scripts.
23- include (${REBELFORK_SDK} /share/CMake/Modules/UrhoCommon.cmake )
24-
25- # Include pre-built SDK
26- set (CMAKE_PREFIX_PATH ${REBELFORK_SDK} /share)
27- find_package (Urho3D REQUIRED )
28- endif ()
12+ # Engine must be available on CMAKE_PREFIX_PATH:
13+ # Option 1 - prebuilt SDK:
14+ # - Download a prebuilt SDK and extract it somewhere
15+ # - Configure with `-DCMAKE_PREFIX_PATH=/path/to/your/sdk -DCMAKE_CONFIGURATION_TYPES="Debug;RelWithDebInfo"`
16+ # - CMAKE_CONFIGURATION_TYPES may or may not be necessary, depending on your SDK configuration
17+ # Option 2 - in-source build:
18+ # - Clone https://github.com/rbfx/rbfx somewhere
19+ # - Configure with `-DCMAKE_PREFIX_PATH=/path/to/rbfx/CMake`
20+ find_package (Urho3D REQUIRED )
2921
3022# Add plugins (optional).
3123include_directories (${CMAKE_SOURCE_DIR} /Plugins )
0 commit comments