mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#2536 Build System : Add target_include_directories to app libraries
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (RigGeoMechDataModel)
|
||||
|
||||
include_directories(
|
||||
${LibCore_SOURCE_DIR}
|
||||
${cafTensor_SOURCE_DIR}
|
||||
../../ResultStatisticsCache
|
||||
../OdbReader
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +35,11 @@ add_library( ${PROJECT_NAME}
|
||||
RimGeoMechGeometrySelectionItem.cpp
|
||||
)
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} LibCore cafTensor ResultStatisticsCache)
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} LibCore cafTensor ResultStatisticsCache RifOdbReader)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
@@ -86,4 +86,11 @@ else()
|
||||
)
|
||||
endif(MSVC)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${RI_ODB_LIBS} RigGeoMechDataModel LibCore)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
Reference in New Issue
Block a user