Skip to content

Commit

Permalink
few more package changes, trying config now...
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaned committed Jul 16, 2016
1 parent 9902fa1 commit f8551e5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 35 deletions.
15 changes: 5 additions & 10 deletions dsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,15 @@ set(HEADERS
add_library(dsp ${SOURCES})

# Include directories
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
target_include_directories(apf INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)

# Link this package to these libraries
target_link_libraries(dsp ma)
target_link_libraries(dsp PRIVATE ma PUBLIC apf)

# Tell CMake to add this package to the SCOREC project
set_property(
TARGET dsp
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
install(TARGETS dsp EXPORT dsp-targets DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include)
install(EXPORT dsp-targets DESTINATION lib/scorec)
19 changes: 7 additions & 12 deletions omega_h/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if(NOT EXISTS "${OMEGA_H_INCLUDE_DIR}")
endif()
find_library(OMEGA_H_LIB omega_h)
if(NOT EXISTS "${OMEGA_H_LIB}")
message(FATAL_ERROR "Omega_h library not found")
message(FATAL_ERROR "Omega_h library not found")
endif()

# Package sources
Expand All @@ -31,21 +31,16 @@ set(SOURCES
add_library(apf_omega_h ${SOURCES})

# Include directories
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${OMEGA_H_INCLUDE_DIR}
)
target_include_directories(apf_omega_h INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
target_include_directories(apf_omega_h PUBLIC ${OMEGA_H_INCLUDE_DIR})

# Link this package to these libraries
target_link_libraries(apf_omega_h mds apf ${OMEGA_H_LIB})
target_link_libraries(apf_omega_h PUBLIC apf ${OMEGA_H_LIB} PRIVATE mds)

# Tell CMake to add this package to the SCOREC project
set_property(
TARGET apf_omega_h
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
install(TARGETS apf_omega_h EXPORT apf_omega_h-targets DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include)
install(EXPORT apf_omega_h-targets DESTINATION lib/scorec)
23 changes: 10 additions & 13 deletions viz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if(NOT EXISTS "${MILO_INCLUDE_DIR}")
endif()
find_library(MILO_LIB NAMES milo)
if(NOT EXISTS "${MILO_LIB}")
message(FATAL_ERROR "milo library not found")
message(FATAL_ERROR "milo library not found")
endif()

# Package sources
Expand All @@ -30,22 +30,19 @@ set(HEADERS
# Add the viz library
add_library(viz ${SOURCES})

# Inlcude directories
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${MILO_INCLUDE_DIR}
)
# Include directories
target_include_directories(apf INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
target_include_directories(apf PRIVATE
${MILO_INCLUDE_DIR}
)

# Link this package to these libraries
target_link_libraries(viz apf ${MILO_LIB})
target_link_libraries(viz PRIVATE apf ${MILO_LIB})

# Tell CMake to add this package to the SCOREC project
set_property(
TARGET viz
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
install(TARGETS viz EXPORT viz-targets DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include)
install(EXPORT viz-targets DESTINATION lib/scorec)

0 comments on commit f8551e5

Please sign in to comment.