mirror of
https://github.com/enduro2d/enduro2d-bootstrap.git
synced 2025-12-13 03:31:18 +07:00
fixes after engine update
This commit is contained in:
@@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
|
|||||||
project(enduro2d-bootstrap)
|
project(enduro2d-bootstrap)
|
||||||
|
|
||||||
#
|
#
|
||||||
# linking mode
|
# linking
|
||||||
#
|
#
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" OFF)
|
option(BUILD_WITH_STATIC_CRT "Use static C runtime library" ON)
|
||||||
if(NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
|
if(BUILD_WITH_STATIC_CRT)
|
||||||
foreach(flag CMAKE_C_FLAGS
|
foreach(flag CMAKE_C_FLAGS
|
||||||
CMAKE_C_FLAGS_DEBUG
|
CMAKE_C_FLAGS_DEBUG
|
||||||
CMAKE_C_FLAGS_RELEASE
|
CMAKE_C_FLAGS_RELEASE
|
||||||
@@ -29,15 +29,16 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
# include enduro2d
|
# enduro2d
|
||||||
#
|
#
|
||||||
|
|
||||||
set(E2D_BUILD_SAMPLES OFF CACHE BOOL "" FORCE)
|
set(E2D_BUILD_SAMPLES OFF CACHE INTERNAL "" FORCE)
|
||||||
set(E2D_BUILD_UNTESTS OFF CACHE BOOL "" FORCE)
|
set(E2D_BUILD_UNTESTS OFF CACHE INTERNAL "" FORCE)
|
||||||
|
set(E2D_BUILD_WITH_STATIC_CRT ${BUILD_WITH_STATIC_CRT} CACHE INTERNAL "" FORCE)
|
||||||
add_subdirectory(modules/enduro2d)
|
add_subdirectory(modules/enduro2d)
|
||||||
|
|
||||||
#
|
#
|
||||||
# project sources
|
# sources
|
||||||
#
|
#
|
||||||
|
|
||||||
file(GLOB_RECURSE PROJECT_SOURCES
|
file(GLOB_RECURSE PROJECT_SOURCES
|
||||||
@@ -46,8 +47,18 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES
|
|||||||
${PROJECT_SOURCES})
|
${PROJECT_SOURCES})
|
||||||
|
|
||||||
#
|
#
|
||||||
# project executable
|
# executable
|
||||||
#
|
#
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
|
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
|
||||||
target_link_libraries(${PROJECT_NAME} enduro2d)
|
target_link_libraries(${PROJECT_NAME} enduro2d)
|
||||||
|
|
||||||
|
#
|
||||||
|
# resources
|
||||||
|
#
|
||||||
|
|
||||||
|
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/bin
|
||||||
|
$<TARGET_FILE_DIR:${PROJECT_NAME}>/bin)
|
||||||
|
add_e2d_shared_libraries_to_target(${PROJECT_NAME})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2018 Matvey Cherevko
|
Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
Reference in New Issue
Block a user