Skip to content

Commit

Permalink
Merge pull request #8 from smistad/upgrade-fast
Browse files Browse the repository at this point in the history
Link with correct libraries and fix std::string in FAST.
  • Loading branch information
jonei authored May 24, 2017
2 parents 7678fbc + 973bb2b commit 8e0b83a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions install/cx/build/cxComponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def repository(self):
return 'git@github.com:smistad/OpenCLUtilityLibrary'
def update(self):
self._getBuilder().gitSetRemoteURL(self.repository())
self._getBuilder().gitCheckout('43614718f7667dd5013af9300fcc63ae30bf244c')
self._getBuilder().gitCheckout('7a4258fab2ce30ca0c9fac347efd903124f39d09')
def configure(self):
builder = self._getBuilder()
builder.configureCMake()
Expand All @@ -531,7 +531,7 @@ def repository(self):
return 'git@github.com:smistad/FAST'
def update(self):
self._getBuilder().gitSetRemoteURL(self.repository())
self._getBuilder().gitCheckout('ab6386042cd3d2417a8e0ce5d3871242ab4913ab')
self._getBuilder().gitCheckout('f81836597db0529f2b8e23d5ee9236cef7377b48')
# branch = 'set_kernel_root_dir'
# self._getBuilder()._changeDirToSource()
# runShell('git checkout %s' % branch, ignoreFailure=False)
Expand Down
13 changes: 11 additions & 2 deletions source/plugins/org.custusx.filter.airways/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include(cxInstallUtilities)
macro(cx_initialize_FAST)
find_package(FAST REQUIRED)
include_directories("${FAST_DIR}/../FAST/source/")
include_directories("${FAST_DIR}/")
link_directories("${FAST_DIR}/lib/")
set(FAST_SOURCE_DIR ${FAST_DIR}/../FAST/source/FAST/)
add_definitions("-DFAST_SOURCE_DIR=\"${FAST_SOURCE_DIR}/\"")
Expand Down Expand Up @@ -64,14 +65,22 @@ install(DIRECTORY ${FAST_SOURCE_DIR}

#Compute the plugin dependencies
ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
# Z lib comes with many names, needed for FAST atm
if(WIN32)
set(ZLIB zlib.lib)
elseif(APPLE)
set(ZLIB libz.dylib)
else()
set(ZLIB libz.so)
endif()
set(PLUGIN_target_libraries
PUBLIC
${PLUGIN_target_libraries}
FAST

PRIVATE
FAST
Qt5::OpenGL
${OPENCL_LIBRARIES}
${ZLIB}
cxResource
cxResourceFilter
cxResourceVisualization
Expand Down

0 comments on commit 8e0b83a

Please sign in to comment.