project
This commit is contained in:
30
src/CMakeLists.txt
Normal file
30
src/CMakeLists.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(PuzGameProj)
|
||||
|
||||
|
||||
file(GLOB_RECURSE sources_engine engine/*.cpp engine/*.h)
|
||||
#file(GLOB_RECURSE data resources/xyz)
|
||||
|
||||
add_executable(PuzGame ${sources_engine})
|
||||
#target_compile_options(PuzGame PUBLIC xyz)
|
||||
set_property(TARGET PuzGame PROPERTY CXX_STANDARD 17)
|
||||
#file(COPY ${data} DESTINATION resources)
|
||||
|
||||
# BGFX
|
||||
add_library(bx STATIC IMPORTED)
|
||||
add_library(bimg STATIC IMPORTED)
|
||||
add_library(bgfx STATIC IMPORTED)
|
||||
set_target_properties(bx PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/dependency/bgfx/.build/win64_vs2022/bin/bxDebug.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/dependency/bx/include/"
|
||||
)
|
||||
set_target_properties(bimg PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/dependency/bgfx/.build/win64_vs2022/bin/bimgDebug.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/dependency/bimg/include/"
|
||||
)
|
||||
set_target_properties(bgfx PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/dependency/bgfx/.build/win64_vs2022/bin/bgfxDebug.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/dependency/bgfx/include/"
|
||||
)
|
||||
target_link_libraries(PuzGame bx bimg bgfx)
|
||||
target_compile_definitions(PuzGame PUBLIC BX_CONFIG_DEBUG=1)
|
||||
Reference in New Issue
Block a user