-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Путь к исходникам движка | ||
set(engine_dir "${CMAKE_SOURCE_DIR}/libs/dviglo2d") | ||
|
||
# Указываем минимальную версию CMake | ||
include(${engine_dir}/cmake/cmake_min_version.cmake) | ||
cmake_minimum_required(VERSION ${dv_cmake_min_version}) | ||
|
||
# Название проекта | ||
project(stuff) | ||
|
||
include(${engine_dir}/cmake/common.cmake) | ||
|
||
# Папка для скомпилированных проектов | ||
set(result_dir "${CMAKE_BINARY_DIR}/result") | ||
|
||
# Создаём папку result | ||
file(MAKE_DIRECTORY ${result_dir}) | ||
|
||
# Указываем папку для следующих скомпилированных экзешников | ||
dv_set_bin_dir(${result_dir}) | ||
|
||
# Подключаем библиотеки | ||
add_subdirectory(libs) | ||
|
||
add_subdirectory(games) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Помещаем игры в отдельный проект | ||
project(games) | ||
|
||
# В IDE таргеты будут отображаться в папке игры | ||
set(CMAKE_FOLDER игры) | ||
|
||
# Создаём папку result | ||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/result) | ||
|
||
# Указываем папку для следующих скомпилированных экзешников | ||
dv_set_bin_dir(${result_dir}) | ||
|
||
# Добавляем все папки | ||
dv_add_all_subdirs() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(dv_big_int EXCLUDE_FROM_ALL) | ||
add_subdirectory(dviglo2d EXCLUDE_FROM_ALL) |