38 lines
427 B
CMake
38 lines
427 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|||
|
|
project(hello_world)
|
||
|
|
|
||
|
|
add_executable(
|
||
|
|
main
|
||
|
|
./main.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(
|
||
|
|
main
|
||
|
|
PUBLIC ./include
|
||
|
|
)
|
||
|
|
|
||
|
|
add_library(
|
||
|
|
eigen
|
||
|
|
./eigen.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(
|
||
|
|
eigen
|
||
|
|
PRIVATE ./include/Eigen
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(
|
||
|
|
main
|
||
|
|
PUBLIC eigen
|
||
|
|
)
|
||
|
|
|
||
|
|
add_executable(
|
||
|
|
calender
|
||
|
|
./calender.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
add_executable(
|
||
|
|
hello-world
|
||
|
|
./hello.cpp
|
||
|
|
)
|