commit
17f08a77b2
4 changed files with 34 additions and 0 deletions
@ -0,0 +1,3 @@ |
||||
cmake-build-* |
||||
.idea |
||||
release |
@ -0,0 +1,17 @@ |
||||
cmake_minimum_required(VERSION 3.22) |
||||
project(Pendulum) |
||||
|
||||
set(CMAKE_CXX_STANDARD 23) |
||||
set(CMAKE_AUTOMOC ON) |
||||
set(CMAKE_AUTORCC ON) |
||||
set(CMAKE_AUTOUIC ON) |
||||
|
||||
find_package(Qt6 COMPONENTS OpenGLWidgets REQUIRED) |
||||
find_package(Eigen3 REQUIRED) |
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES src/**.cpp) |
||||
add_executable(Pendulum WIN32 ${SOURCE_FILES}) |
||||
|
||||
include_directories(${EIGEN3_INCLUDE_DIR}) |
||||
|
||||
target_link_libraries(Pendulum Qt6::OpenGLWidgets) |
@ -0,0 +1,8 @@ |
||||
#include <iostream> |
||||
#include <Eigen/Core> |
||||
|
||||
int main() { |
||||
Eigen::Vector2d V(1, 2); |
||||
std::cout << V.x() << " " << V.y() << std::endl; |
||||
return 0; |
||||
} |
Loading…
Reference in new issue