加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
找不到服务器 提交于 2022-08-19 16:43 . 08.19 1637
cmake_minimum_required(VERSION 3.12)
project(satellitesim VERSION 0.1.2)
set(CMAKE_BUILD_TYPE release)
set(CPP_LIBRARIES_PATH "E:/cpplibraries/")
list(APPEND CMAKE_PREFIX_PATH ${CPP_LIBRARIES_PATH})
set(PROJECT_SOURCES
${PROJECT_SOURCE_DIR}/main.cpp
${PROJECT_SOURCE_DIR}/src/orbitalsim.cpp
${PROJECT_SOURCE_DIR}/src/utils.c
)
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
find_package(simucpp REQUIRED)
find_package(raylib REQUIRED)
message(STATUS "simucpp_LIBS: ${simucpp_LIBS}")
message(STATUS "simucpp_VERSION: ${simucpp_VERSION}")
message(STATUS "raylib_LIBS: ${raylib_LIBS}")
message(STATUS "raylib_VERSION: ${raylib_VERSION}")
target_include_directories(${PROJECT_NAME} PUBLIC
${CPP_LIBRARIES_PATH}/include
${PROJECT_SOURCE_DIR}/src
${simucpp_INCLUDE_DIRS}
${raylib_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME} PUBLIC
${raylib_LIBS}
${simucpp_LIBS}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化