Use target_include_directory

* Fwk: Avoid use of include_directories
* Remove target_include_directories from Commands
* Refactor cmake includes
- Avoid using include_directories, and use target_include_directories.
- Use add_subdirectory directly from main cmakefile, do not use in ApplicationLibCode.
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2023-04-25 13:14:26 +02:00
1 parent 26f13012b4
commit 0907f57de9
13 files changed
+85 -139

No files matched your search

+2 -1
View File
@@ -277,9 +277,10 @@ if(RESINSIGHT_ENABLE_GRPC)
list(APPEND LINK_LIBRARIES GrpcInterface)
endif()
list(APPEND LINK_LIBRARIES RigGeoMechDataModel)
if(RESINSIGHT_USE_ODB_API)
add_definitions(-DUSE_ODB_API)
list(APPEND LINK_LIBRARIES RigGeoMechDataModel)
list(APPEND LINK_LIBRARIES RifOdbReader)
endif()