1 Star 0 Fork 64

zhengfasheng/GLest

forked from qcdong/GLest 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
qcdong 提交于 2021-06-22 15:52 . remove mygui
cmake_minimum_required(VERSION 3.17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include (CheckIncludeFiles)
project(glest)
macro (setup_library name)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
include_directories(${INCLUDE_DIRS})
foreach(src_file ${SOURCE_FILES})
get_filename_component ("PATH" "${src_file}" "PATH")
string (REPLACE ${CMAKE_CURRENT_SOURCE_DIR} "" "PATH" "${PATH}")
string (REPLACE / \\ "PATH" "${PATH}")
source_group("Source Files\\${PATH}" FILES ${src_file})
endforeach()
add_library(${name} STATIC ${SOURCE_FILES})
endmacro()
set(DEPS_INCLUDE
#${CMAKE_CURRENT_SOURCE_DIR}/deps/lua-5.1.5/src
${CMAKE_CURRENT_SOURCE_DIR}/deps/SDL2-2.0.3/include
${CMAKE_CURRENT_SOURCE_DIR}/deps/OggDecoder/include
#${CMAKE_CURRENT_SOURCE_DIR}/deps/xerces-c-3.1.2/src
#${CMAKE_CURRENT_SOURCE_DIR}/deps/freetype-2.5.0/include
#${CMAKE_CURRENT_SOURCE_DIR}/deps/SDL2_ttf-2.0.12
#${CMAKE_CURRENT_SOURCE_DIR}/deps/tolua
${CMAKE_CURRENT_SOURCE_DIR}/deps/tinyxml2
${CMAKE_CURRENT_SOURCE_DIR}/deps/lua
#${CMAKE_CURRENT_SOURCE_DIR}/deps/tinycthread
${CMAKE_CURRENT_SOURCE_DIR}/deps/GLEW/include
#${CMAKE_CURRENT_SOURCE_DIR}/deps/kazmath/include
#${CMAKE_CURRENT_SOURCE_DIR}/deps/xxtea
#${CMAKE_CURRENT_SOURCE_DIR}/deps/zlib
${CMAKE_CURRENT_SOURCE_DIR}/deps/stb
C:/wxWidgets-3.0.2/include
)
set(deps_lib_dir C:/wxWidgets-3.0.2/lib/vc_lib)
set(deps_lib comctl32 uuid rpcrt4
#wxbase30u.lib
#wxbase30u_net.lib
#wxbase30u_xml.lib
#wxexpat.lib
#wxjpeg.lib
#wxmsw30u_adv.lib
#wxmsw30u_aui.lib
#wxmsw30u_core.lib
#wxmsw30u_gl.lib
#wxmsw30u_html.lib
#wxmsw30u_media.lib
#wxmsw30u_propgrid.lib
#wxmsw30u_qa.lib
#wxmsw30u_ribbon.lib
#wxmsw30u_richtext.lib
#wxmsw30u_stc.lib
#wxmsw30u_webview.lib
#wxmsw30u_xrc.lib
#wxpng.lib
#wxregexu.lib
#wxscintilla.lib
#wxtiff.lib
#wxzlib.lib
wxbase30ud.lib
wxmsw30ud_core.lib
wxmsw30ud_gl.lib
wxpngd.lib
wxzlibd.lib
#wxbase30ud_net.lib
#wxbase30ud_xml.lib
#wxexpatd.lib
#wxjpegd.lib
#wxmsw30ud_adv.lib
#wxmsw30ud_aui.lib
#wxmsw30ud_html.lib
#wxmsw30ud_media.lib
#wxmsw30ud_propgrid.lib
#wxmsw30ud_qa.lib
#wxmsw30ud_ribbon.lib
#wxmsw30ud_richtext.lib
#wxmsw30ud_stc.lib
#wxmsw30ud_webview.lib
#wxmsw30ud_xrc.lib
#wxscintillad.lib
#wxregexud.lib
#wxtiffd.lib
)
add_subdirectory(source)
add_subdirectory(deps)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhengfasheng/GLest.git
git@gitee.com:zhengfasheng/GLest.git
zhengfasheng
GLest
GLest
master

搜索帮助