-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (34 loc) · 927 Bytes
/
CMakeLists.txt
File metadata and controls
43 lines (34 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
if(DEFINED TRIBITS_PACKAGE)
include(pkg_tribits.cmake)
return()
endif()
if(NOT ENABLE_EGADS)
return()
endif()
# this file brings PUMI_USE_EGADSLITE from CMake to C++
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/gmi_egads_config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/gmi_egads_config.h")
#Sources & Headers
set(SOURCES gmi_egads.c)
set(HEADERS gmi_egads.h)
add_library(gmi_egads ${SOURCES})
target_include_directories(gmi_egads
PRIVATE
${EGADS_INCLUDE_DIR}
)
target_link_libraries(gmi_egads
PUBLIC
gmi
PRIVATE
${EGADS_LIBRARIES}
)
# Include directories
target_include_directories(gmi_egads PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
# make sure the compiler can find the config header
target_include_directories(gmi_egads PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
scorec_export_library(gmi_egads)
bob_end_subdir()