Work with default libraries in all projects
已回答
Hello everyone :)
I started working with CGAL - computation geometry library that requires a lot of headache from my side ^^"
After fighting my way with it, I got to this c-make-list state:
cmake_minimum_required(VERSION 3.8)
project(solver)
set(CMAKE_CXX_STANDARD 17)
include_directories(C:/local/boost_1_66_0)
include_directories(C:/dev/CGAL-4.11.1/include)
include_directories(C:/dev/CGAL-4.11.1/auxiliary/gmp/include)
link_directories(C:/local/boost_1_66_0/libs)
link_directories(C:/dev/CGAL-4.11.1/auxiliary/gmp/lib)
link_directories(C:/dev/CGAL-4.11.1/lib)
set(SOURCE_FILES main.cpp knnRepository.h knnNode.h knn.h constants.h)
add_executable(solver ${SOURCE_FILES})
target_link_libraries(solver libgmp-10.lib)
target_link_libraries(solver libmpfr-4.lib)
But as I'm going to work with a bunch of programs that people will send me, and they work with different c-make-list files - I want to add those dependencies as default dependencies for all project I'm going to work within Clion.
Is it possible to do so?
Ido
请先登录再写评论。
Hello!
You can create a live template (or several live templates) for CMake in File | Settings | Editor | Live Templates:
This will make it easier to insert frequently-used constructs into your CMakeLists.txt. Is it suitable for you?