cmake - How can I define to libraries in the same CMakeLists.txt file and set include directories separately for each? -
i define 2 libraries in same cmakelists.txt file, 1 requires additional headers. set corresponding include paths when library compiled. there simple way achieve this?
is bad practice define multiple libraries in same cmakelists.txt file?
add_library(lib1 lib1.cpp) target_include_directories(lib1 private /path/to/dir) add_library(lib2 lib2.cpp)
http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html
Comments
Post a Comment