Skip to content

Commit

Permalink
Move ANN in separate library, ignore warnings, add to MarlinUtil libs…
Browse files Browse the repository at this point in the history
… to keep MarlinReco happy
  • Loading branch information
andresailer committed May 2, 2017
1 parent c536970 commit 773a4d1
Show file tree
Hide file tree
Showing 26 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -86,12 +86,17 @@ INSTALL_DIRECTORY( ./source/include/ DESTINATION ./include/marlinutil FILES_MATC
# get list of all source files
AUX_SOURCE_DIRECTORY( ./source/src library_sources )
AUX_SOURCE_DIRECTORY( ./source/src/mille library_sources )
AUX_SOURCE_DIRECTORY( ./source/src/ann library_sources )
AUX_SOURCE_DIRECTORY( ./source/ann ann_sources )

ADD_SHARED_LIBRARY( MarlinUtilAnn ${ann_sources} )
SET_TARGET_PROPERTIES( MarlinUtilAnn PROPERTIES COMPILE_FLAGS "-w" )
INSTALL_SHARED_LIBRARY( MarlinUtilAnn DESTINATION lib )

ADD_SHARED_LIBRARY( ${PROJECT_NAME} ${library_sources} )
INSTALL_SHARED_LIBRARY( ${PROJECT_NAME} DESTINATION lib )

TARGET_LINK_LIBRARIES( ${PROJECT_NAME} MarlinUtilAnn )

#AUX_SOURCE_DIRECTORY( ./source/src/ann ann_library_sources )
SET_SOURCE_FILES_PROPERTIES( "./source/src/ann/kd_pr_search.cpp" PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing" )

Expand Down
2 changes: 1 addition & 1 deletion cmake/MarlinUtilConfig.cmake.in
Expand Up @@ -52,7 +52,7 @@ INCLUDE( "@ILCSOFT_CMAKE_MODULES_ROOT@/MacroCheckPackageLibs.cmake" )
# only standard libraries should be passed as arguments to CHECK_PACKAGE_LIBS
# additional components are set by cmake in variable PKG_FIND_COMPONENTS
# first argument should be the package name
CHECK_PACKAGE_LIBS( MarlinUtil MarlinUtil )
CHECK_PACKAGE_LIBS( MarlinUtil MarlinUtil MarlinUtilAnn )



Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 773a4d1

Please sign in to comment.