Cmake include directories recursive


Cmake include directories recursive. You need to tell CMake to add includes/ to your program's include path. txt : include_directories(". linkAll: gcc *. The top level projects directory cannot be considered a top level project, but just a collection of unrelated projects, so I would not put a CMakeLists. <<snip>> INCLUDE_DIRECTORIES() LINK_DIRECTORIES() LINK_LIBRARIES() TARGET_LINK_LIBRARIES() May 2, 2023 · From a cmStateDirectory you can iterate over its Children, and in each of those cmStateSnapshot instances, call . target_include_directories(library PRIVATE . This default behavior can be changed by setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. add_subdirectory(libs SYSTEM) to my top level CMakeLists. Though if you used target_include_directories instead they would be target-local and order wouldn’t matter. 0 recursive search and automatic re-configuration on adding or deleting source files was added. List of public include directories requirements for a library. Dec 1, 2021 · 默认情况下, include_directories 命令会将目录添加到列表最后,可以通过命令设置 CMAKE_INCLUDE_DIRECTORIES_BEFORE 变量为 ON 来改变它默认行为,将目录添加到列表前面。. As you mentioned include directories do propagate but this only. # 添加文件路径到头文件搜索路径. The command SET is used for setting a variable, in this case to a list of source files. include_sub_directories_recursively(${PROJECT_SOURCE_DIR}) # 使用了上面函数就不需要如下面地一个个文件夹去包含了. bin, include, lib, etc. /lib1/lib1. Then you have a CMakeLists. c. If you want properties to propagate to dependents, use the target_include_directories command that became standard with version 3. txt files. The INTERFACE, PUBLIC and PRIVATE keywords are required to specify the scope of the items that follow them. compileAll: gcc -c *. The named <target> must have been created by a command such as add_executable() or add_library() and must not be an ALIAS target. Running e. The best thing (according to my CMake knowledge) is to write a macro for. Without cleaning the cache, CMake will continue using your cached CMAKE_CXX_FLAGS from the previous run. Say given a search_paths: /a/b, /c, /d/e. 11. Not globbing causes you to lose the CMake logic amongst huge lists of files. What I'm looking for: Something like this: They are also added to the target property INCLUDE_DIRECTORIES for each target in the current CMakeLists file. h" will find it's target. add_subdirectory(blah/some_lib SYSTEM) some_lib itself uses its own cmake setup to build. Aug 13, 2015 · This important feature is pretty well hidden in the documentation: target_include_directories mention populating INTERFACE_INCLUDE_DIRECTORIES, whose documentation says: When target dependencies are specified using target_link_libraries() , CMake will read this property from all target dependencies to determine the build properties of the consumer. h". If you use target_include_directories(my_target INTERFACE/PUBLIC ) there is no such functionality in CMake prior to version 2. The code I have written to achieve this in makefile is as below: dirs:=$(root_folder)/*/. The target_include_directories() command populates this property with values given to the PUBLIC and INTERFACE keywords. However, the option CONFIGURE_DEPENDS implies that corresponding directory will be re-checked every time building is requested, so build process would consume Apr 13, 2018 · 2. Jun 17, 2015 · Petr > > > > I presume recursively you mean propagating the required include > > directories between targets rather anything to do recursively handling > > directories. And something to be careful of in the implementation: it is possible to add the same source subdirectory more than once, with different Oct 19, 2013 · Based on the documentation, that's what include_directories() is supposed to do. txt and all of it's add_subdirectory() siblings. set CL=/IC:\Program Files\Microsoft SDKs\Windows\v7. cpp. target_include_directories Instead of including every seperate sub-dir and leaving out "sub_dir_z", is there any command such that i simply do target_include_directories on "main_dir" and exclude "sub_dir_z" Notice a few things already apparent; the CMakeLists. Aug 30, 2016 · 2. add_subdirectory(lib0) add_subdirectory(lib1) # Assuming that your src target is called my_proj: target_link_libraries(my_proj PRIVATE lib0 lib1) EDIT: I can confirm that the code May 25, 2016 · Actually, in my re-useable CMake framework, I only do set()s in my CMakeLists. h" I'm not exactly sure what I'm doing wrong, this my first time using CMake so I mostly wrote my CMakeLists file using bits and examples from the internet. happens under certain conditions (when using PUBLIC or INTERFACE. Besides, the . These directories will take precedence over directories defined at target level except for Xcode generator Aug 9, 2017 · You could use execute_process() with a cmake -P script that uses globbing to recursively scan for source files which writes to an included file in your CMakeLists. # Description: Exclude all files from a list under a specific directory. According to the documentation: Full path to the listfile currently being processed. Yes, that is the standard behavior for CMake's include_directories command. I then want to add this directory to INCLUDE_DIRECTORIES. link_directories([AFTER|BEFORE] directory1 [directory2 ]) Adds the paths in which the linker should search for libraries. o -o output. – Solution 1: Add include directories and header files as source files. txt that has. I am having a problem in finding /usr/include/zlib. Next message: [CMake] Recursively add directories to INCLUDE_DIRECTORIES Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi all, I want to recursively scan all sub-directories (and their sub-directories, etc ) and determine if the directory contains a header (. include_directories( ${CMAKE_SOURCE_DIR}/3rdparty ) Note that you should not hardcode absolute paths (like D:\) into your CMakeLists. Use `include_directories` (CMake 2. txt, not, as you write, the directory of foo. cpp)) But the . txt, and then include() a file with all the "magic". The list returned by file (GLOB_RECURSE is a superset of the desired result. answered Jan 29, 2013 at 18:31. i. Aug 22, 2018 at 6:29. 3. This preference is applicable even for normal (not-header-only) libraries Nov 3, 2020 · 4. > > I don't know of a way of doing May 11, 2022 · endfunction() 使用如下 :. If it is a relative path, it will be evaluated with respect to the current directory (the typical usage), but it may also be an absolute path. Things I've already tried is using CMake's include_directories() or target_include_directories() which allows me (as far Oct 9, 2012 · 1. : // main. Secondly, you don't need to add those sub-directories to your include_directories (or even '/usr/include' as gcc should be searching there by default). I expected all the include directories from some_lib to be using -isystem but they still use -I. CMAKE_IGNORE_PATH does not affect the search prefixes used by these four commands. Sep 24, 2015 · For INCLUDE_DIRECTORIES and COMPILE_DEFINITIONS this is easily solved, as although both behave similarly when get_target_property is used (except that linked targets are obviously not in the list), a generator expression of the form $<TARGET_PROPERTY:${TARGET},INCLUDE_DIRECTORIES> produces the desired list of recursively required includes and Aug 2, 2021 · To add more than one directory, use this option more than once. – Some programmer dude. In cmake 3. 22: The environment variable CMAKE_INSTALL_MODE can override the default copying behavior of install(). Jan 29, 2018 · But currently I have to write. PUBLIC ${/path_to_directory}/include. Raw. PRIVATE and PUBLIC items will populate the LINK_DIRECTORIES Nov 21, 2013 · 1. AUX_SOURCE_DIRECTORY(dir VARIABLE) Collects the names of all the source files in the specified directory and stores the list in the variable provided. CMakeLists. . Jun 21, 2019 · 2. 75inchpianist. target_include_directories() コマンドは、CMake で特定のターゲットのコンパイル時に使用するインクルードディレクトリを指定する Sent from my iPhone On Jun 11, 2012, at 11:09, GOO Creations <goocreations at gmail. New in version 3. 11+): `target_include_directories (target_name $ {YOUR_DIRECTORY})`. \. Add directories in which the linker will look for libraries. Jan 17, 2015 · How can I create my ENDF6_SRC variable without adding the . txt file will be shorter. > > > > As you mentioned include directories do propagate but this only > > happens under certain conditions (when using PUBLIC or INTERFACE > > scopes). Here is my function: FUNCTION(R_SEARCH search_paths return_list) FOREACH(search_path ${search_paths}) Jun 11, 2012 · Previous message: [CMake] Recursively add directories to INCLUDE_DIRECTORIES Next message: [CMake] Cpack and output file naming Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] First, you use include_directories() to tell CMake to add the directory as -I to the compilation command line. Set this directory property to a true value on a subdirectory to exclude its targets from the "all" target of its ancestors. 4,122 1 22 40. Previous message: [CMake] Recursively include target include directories only Next message: [CMake] Recursively include target include directories only Messages sorted by: target_include_directories(): include directory '/path/to/dir' does not exist: 指定されたインクルードディレクトリが存在しない場合に発生します。. ) target_sources(library PRIVATE. Template instantiation files can be stored in a "Templates" subdirectory and collected automatically using this command to Aug 23, 2007 · The command SET is used for setting a variable, in this case to a list of source files. I think you're mixing up two different paradigms here. I even tried adding. g. txt but still no go. At least in a place where CMake can find them. # Param _InFileList: Input and returned List. What I ended up doing, was a powershell script parsing that file and just picked out those paths in that variable and output those to a file in the format PC-Lint wants it. ), each path must be listed in CMAKE_IGNORE_PATH as a full absolute Oct 5, 2021 · add_subdirectory(inc) Overall I think that’s a nice presentation. make inside Feb 27, 2017 · The first uses the CMake command line tool copy_directory. By using AFTER or BEFORE explicitly, you can select between appending and prepending, independent of the default. target_include_directories (program1 PUBLIC ${PROJECT_SOURCE_DIR}) it will search from your source directory, so "libA/fileA. Aug 1, 2014 · aux_source_directory ( ) Collects the names of all the source files in the specified directory and stores the list in the provided. Added a function to make it easy to exclude another directory. 也可以在每次调用 include_directories 命令时使用 AFTER 或 BEFORE 选项来指定是添加到列表的前面或者后面 INTERFACE_INCLUDE_DIRECTORIES. For the long answer please see What's the CMake syntax to set and use variables? Directory & Target Properties vs (Global) Variables. List of preprocessor include file search directories. Your CMakeLists. Specifically, locations with headers that are needed by client code should be in the PUBLIC or INTERFACE section. txt as that makes it impossible to build your project in any other location. The filtering works as follows: If the not-yet-resolved dependency matches any of the PRE_INCLUDE_REGEXES, steps 2 and 3 are skipped, and the dependency resolution proceeds to step 4. directories between targets rather anything to do recursively handling. Nov 22, 2023 · add_library already use the ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc why does target_include_directories do it again? ${CMAKE_COMMAND} is the path to CMake (if CMake is added to your PATH environment variable, "cmake" is enough)-E makes CMake run commands instead of building; copy_directory is a Command-Line Tool; config is the directory (that falls under the root of the project) whose contents will be copied into the build target #include ". Nov 20, 2015 · 23. txt should look something like. There is also ${CMAKE_CURRENT_BINARY_DIR} which resolves the the subdirectory in the build directory that is currently active. Apr 16, 2021 · CMake doesn't differentiate users of the library: all INTERFACE properties of the library are propagated to anyone which links with that library. Fork 2. The approach I use for include directories is to have all includes for the project rooted in a single include directory in the source tree and have all includes relative to that directory. txt and code files are located. # MACRO to add all directories in result. Won't work: 1) the second line will only use the *. They are different packages and they are installed on the system. SOURCE:=$(foreach dir,$(dirs),$(wildcard $(dir)/*. header (. h) file. cpp". cmake INCLUDE_DIRECTORIES. I will try out the examples mentioned in the Sep 17, 2017 · This allows the extension to recursively search in these folders and offer more suggestions in the light bulb as the search process goes on. GetDirectory() to get a cmStateDirectory instance for each one, and then recurse into that. com Sun Jun 21 12:11:19 EDT 2015. $ {curdir} $ {curdir}/*) Jul 8, 2010 · With this option there is no needs to manually re-run CMake after addition/deletion of a source file in the directory - CMake will be re-run automatically on next building the project. directories. txt. I presume recursively you mean propagating the required include. Thus one possible solution is to post process the returned list by only selecting the first match returned for each directory. I also want to avoid: Polluting the src/ and include/ directories with endless CMakeLists. The solution is simply: run cmake manually instead of just rebuilding (which needs to be done for other reasons in my usecase anyways, and is part of the CI workflow). json file. lexa-b. The short answer is, that each sub-directory has it's own variable scope initialized with a copy of the current variable values at the time of the add_subdirectory() call. Jun 22, 2009 · Original answer: The advantages to globbing are: It's easy to add new files as they are only listed in one place: on disk. From the documentation: Specify include directories or targets to use when compiling a given target. The source_dir specifies the directory in which the source CMakeLists. h" IMO, I'd go for the first option! EXCLUDE_FROM_ALL. If BEFORE is specified, the content will be prepended to the property instead of being appended. Apr 18, 2016 · 2. h" remove the include_directories in CMakeLists and #include the file ". cmake yields the directory of CMakeLists. Sep 16, 2020 · 默认情况下, include_directories 命令会将目录添加到列表最后,可以通过命令设置 CMAKE_INCLUDE_DIRECTORIES_BEFORE 变量为 ON 来改变它默认行为,将目录添加到列表前面。. this and then use it as follows: SCAN_DIRS (mylist) INCLUDE_DIRECTORIES ($ {mylist}) Any suggestions on how to implement this "SCAN_DIRS" macro? Christoph. cpp files from the Test directory? I don't want a CMakeLists. Targets may populate this property to publish the include directories required to compile against the headers for the target. # 递归包含工程文件夹下的头文件,这里直接把CMakelist. txt in src that looks like this (You can obviously do this for as many directories as you want): # src/CMakeLists. 也可以在每次调用 include_directories 命令时使用 AFTER 或 BEFORE 选项来指定是添加到列表的前面或者后面 Jan 16, 2012 · For that reason other tools, which rely on recursive make, either do not work correctly in all cases or need some wrappers to work around these problems. Found a solution that works for me. When access library's interface headers, it is better to use same include paths both inside the project and outside of it. May 31, 2018 · 1. The target_include_directories command could be used to add single paths just needed by the specific target. I want CMake to recursively scan src and include and determine the list of source and header files in my project, regardless of the directory structure. This does not affect the "all" target of the subdirectory itself. h even it is clearly there. file1. If excluded, running e. This snippet also makes the extention and exclude filter variable macro( add_recursive retVal dir ext excl) # Store unfiltered list of files into temporary list file( GLOB_RECURSE _tmp_list ${dir}/${ext}) # Resulted list is Apr 1, 2016 · Instead first create the libraries with add_library and later in your binary you can include the header directory with include_directories the rest is known. txt called "dependencies". Since then you can use the following snippet: CMAKE MACRO and function to include all directories recursively. As you noted, the highly flexible ExternalProject module runs its commands at build time, so you can't make direct use of Project A's import file since it's only created once Project A has been installed. An important feature of the commands listed above is that are Feb 22, 2013 · file1. Leif Walsh. h>. While using nmake you can specify the cl. exe include dir with an environment variable CL. Directories are searched only until the specified include file is found. txt was changed since the last cmake run or if cmake was used to configure the project again. Anything that could point me in the right direction and help me solve this issue is much appreciated. I want project1 to include files from project2 without specifying the full path, e. , and my experiments confirm that this is indeed how CMAKE_CURRENT Feb 2, 2016 · In that file there is a variable named "CMAKE_CXX_TARGET_INCLUDE_PATH" which contain all include paths needed by the target. ") keep your CMakeLists but #include the file "lib1. txt": Thanks. If FOLLOW_SYMLINKS is given or policy CMP0009 is not set to OLD then LIST_DIRECTORIES treats symlinks as directories. However despite explicitly setting that and following it with a debug message(${INCLUDE_DIRECTORIES}), the INCLUDE_DIRECTORIES variable is an empty string, and no directories are specified for the include path, so my compilation of proj1 fails. exe. cmake nags about the set not having enough arguments and discontinues the macro. A #include directive can be specified in double-quote (or local-first) form, for example, #include "local. cmake) would suffice. This command is intended to be used by projects that use explicit template instantiation. Users must specify the full path to their includes like #include <subfolder/a. add_executable (HelloWorld ${source_files}) # Assuming this is meant to be a public directory. Jul 20, 2021 · target_include_directories(lib1 INTERFACE ${CMAKE_CURRENT_LIST_DIR}) target_link_libraries(lib1 INTERFACE lib0) The src/CMakeLists. 0A\Include. h files. You can use it as: your_target_name. I think you want to use -L/usr/X11R6/lib -L/usr/local/lib -lGL -lGLU -lm -lglut to add the OpenGL libraries. Jun 17, 2015 · Thanks. \include\bananas\bananas. Usually this is done with either include_directories or target_include_directories. e. file2. To ignore individual paths under a search prefix (e. txt所在文件夹下的文件夹都包含. To add include directories with CMake and track header files in the generated project: Use `target_include_directories` (CMake 2. This is a big plus if you have lots of files. scopes). To speed up compile times, each of the source files also includes the moc source, like #include "moc_a. Even if the question is not clear, I guess you want target_include_directories ( here the documentation) instead of include_directories. I am new to makefiles. com> wrote: > Hi all, > > I want to recursively scan all sub-directories (and their sub-directories, etc ) and determine if the directory contains a header (. cpp files are not getting included to the SOURCE variable with this By default GLOB_RECURSE omits directories from result list - setting LIST_DIRECTORIES to true adds directories to result list. cortes707 November 23, 2023, 1:58pm 8. If you come to the CMake developers with a bug and a glob, they'll tell you to fix that before they help you. # adds its source first, and then the level above it adds its source and passes both up, and so on Sep 15, 2014 · IMPORTANT: you must clean your build directory (i. txt , if I modify the "magic" I "touch" a different file. include_directories([AFTER|BEFORE] [SYSTEM] dir1 [dir2 ]) Add the given directories to those the compiler uses to search for include files. #include "SDL2. make in the parent directory will not build targets the subdirectory by default. Aug 19, 2012 · you can use in your root CMakeLists. This property holds a semicolon-separated list of paths and will be added to the list of include directories when this source file builds. Relative paths given to this command are interpreted as relative to the current source directory, see CMP0015. #include "file1. So the easiest would be to add the "ThirdParty" folder as a root so I can use #include relative to that then, but doing. CMake works recursively, descending from the current directory into any subdirectories listed in the SUBDIRS command. Aug 1, 2011 · is there a way to get the system includes as opposed to every includes? example: include_directories(SYSTEM system/include) include_directories(local/include) get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY ????) – Changed in version 3. Jan 12, 2018 · 3. cmake recursive include dir. It's unclear from the documentation whether this copy always happens, regardless if files in the assets directory were updated or not, or if it only copies when the asset files don't exist or an asset file was updated: The listed directories do not apply recursively, so any subdirectories to be ignored must also be explicitly listed. Feb 15, 2016 · It must also be noted that the CMake developers "do not recommend using GLOB to collect a list of source files from your source tree. This is because you should be able to copy the contents of the include directory to /usr/include or similar directly (except for configuration headers, which I go over in another chapter), and not have add_subdirectory(source_dir [binary_dir] [EXCLUDE_FROM_ALL] [SYSTEM]) Adds a subdirectory to the build. By default the directories are appended onto the current list of directories. I want to search this directory recursively to find a header file. Options common to multiple signatures are covered here but they are valid only for signatures that specify Jan 4, 2023 · some_lib. These arguments can be used to exclude unwanted system libraries when resolving the dependencies, or to include libraries from a specific directory. As an example, if your project's sources are in src, and you need headers from include, you could do it like this: src/main. CMake provides generator expressions (e. h. Template instantiation files can be stored in a "Templates Specifies include directories to use when compiling a given target. # each function should cascade back upward in setting variables so that the bottom directory. Oct 10, 2013 · All of the header files I reference from my program are all relative to this directory, so in CMake I want to find this directory (wherever it is installed on the parent system) and add it to the include_directories. edited Sep 29, 2015 at 19:44. answered Apr 13, 2018 at 6:34. Since there will be files with the same name later on, I need to distinguish them in their folders. 10 and older): Apr 19, 2022 · Lets say i need to include all sub-dir except "sub_dir_z" and in cmake I use the command. These items will be added to the link command. test1. > > > > I don't know of Star 7. Then if I you ``` include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${CMAKE_BINARY_DIR}/include) # for generated header files ``` in the Sep 28, 2021 · With CMake, adding header include directories to your C++ project is as easy as using your head in football! Heading those C++ include directories is easy with CMake. > > I presume recursively you mean propagating the required include > directories between targets rather anything to do recursively handling > directories. If you change the include directory in program1 to. <<snip>> INCLUDE_DIRECTORIES () LINK_DIRECTORIES () LINK_LIBRARIES () TARGET_LINK_LIBRARIES () These commands define directories and libraries used to compile source code and build executables. > > As you mentioned include directories do propagate but this only > happens under certain conditions (when using PUBLIC or INTERFACE > scopes). Some of them define installation options for files and targets. I'd like implement a function in cmake to search a list of path recursively. In directory libs I have a CMakeLists. There are multiple signatures for this command. Apr 9, 2019 · 获取当前目录及子目录(递归获取),添加到头文件搜索路径(仅供参考) Aug 22, 2018 · The include_directories command could be used to add global directories that are needed by all (or at least multiple) targets. You can use this option on the same command line as the ( /X (Ignore standard include paths)) option. Manually add include paths If none of the above fully resolves the paths, you could manually specify the paths to the headers that your project depends on in the c_cpp_properties. Essentially, whatever file we include in that statement gets copied Jan 21, 2010 · Find all source files in a directory. txt file in File/ or Section/ . ¶. # Function: EXCLUDE_FILES_FROM_DIR_IN_LIST. This piece of code almost worked for me. I am currently trying to figure out how CMake handles this case, and if the issues mentioned in the paper were taken into account in the design. The following CMake function sketches the necessary steps: function (glob_recurse_first _globbingExpression _resultVar) file (GLOB By default the directories specified are appended onto the current list of directories. Not globbing creates duplication. If the SYSTEM option is given, the compiler will be told Anyways: yes, I suspect the same problems occur with directories as files. 8. clean the CMake cache) before launching any of this form. txt files are split up over all source directories, and are not in the include directories. [CMake] Recursively include target include directories only Stephen Kelly steveire at gmail. If your sources are in a subdirectory such as src/ and you want to include files that are being generated from src/CMakeLists. target_include_directories(HelloWorld PUBLIC "includes/") Jun 14, 2022 · in which the line "includePath": ["${env:PICO_SDK_PATH}/**"] is crucial, which allows VS Code (or the "C/C++ Extension" I guess) to recursively search for all C (header) files in the SDK and make them available in my project. " This is pretty strong language and should give one pause before doing so. Nov 21, 2023 · It just needs to be outside of the effects of those massive include_directories calls. Second, you list the headers in your add_executable() or add_library() call. I'm trying the below command, but Oct 5, 2021 · add_subdirectory(inc) Overall I think that’s a nice presentation. However this is to assist in build automation without requiring yet another external project dependency. I want to have a return_list with paths of directories under given search_paths which contains . The target property values are the ones used by the generators. answered Sep 23, 2015 at 10:46. I want to recursively find all the files in a root_folder and store it to a variable. Examples of recursive globbing include: / Jan 30, 2013 · without going into specifics of makefiles, use the * to your advantage. Nov 2, 2011 · You just have to be careful that there's not also another real sub-directory of B that is also named "A" and that is also add_subdirectory'd Because if you do, then that would be an error, as CMake cannot have two different source directories mapping into the same build directory. txt i. IKavanagh. txt file at that level. Jul 26, 2023 · This project is structured like so: Headers are organized into subfolders, and only the top level include directory is added with target_include_directories. # function processes each sub-directory and then adds each source file in directory. txt then using ${CMAKE_CURRENT_BINARY_DIR} might be what you are looking for. So ${A_FOUND} and ${B_FOUND} would both be true. cmake (except of course if those two directories happen to be identical). include_directories(${THIRDPARTY_PATH}) Sep 29, 2015 · 2. CMAKE_CURRENT_LIST_DIR in foo. Feb 9, 2016 · 1. # 下面的 Apr 7, 2019 · I have placed some header files in a subdirectory next to CMakeLists. As you are probably aware, you can include other source files in C++ with the #include pre-processor directive. Probably as the first include(rc_src. The command will apply only to targets created Feb 8, 2011 · But include_directories() in contrast does set those directories for all targets in the current CMakeLists. something like: "CMakeLists. Relative paths are interpreted as relative to the current source directory. , <TARGET_PROPERTY:MY_TARGET,INTERFACE_INCLUDE_DIRECTORIES>) for more dynamic control over include directories based on build configurations or target properties. 6,159 11 43 48. o files that happen to be there 2) it assumes everything is in the same directory. MACRO (SUBDIRLIST result firstdir curdir) file (GLOB ENDF6_SRC_TOP RELATIVE. If I add / change source files, I only "touch" the CMakeLists. Here is one example of "target_include_directories" from the Jan 18, 2016 · Cmake used to only update the list of source files if CMakeLists. Jun 22, 2020 · To add a directory to the global list of include directories, you use e. wj mg jb ac yv tj ky nh ag kd