Skip to content

Commit

Permalink
Making linking private and removing ".
Browse files Browse the repository at this point in the history
  • Loading branch information
isazi committed Jan 25, 2018
1 parent 7e78845 commit 73d3f8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ include(GNUInstallDirs)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++14")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native -mtune=native")
set(TARGET_LINK_LIBRARIES "isa_utils isa_opencl astrodata dedispersion integration snr OpenCL")
set(TARGET_LINK_LIBRARIES isa_utils isa_opencl astrodata dedispersion integration snr OpenCL)
if($ENV{OPENMP})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
endif()
if($ENV{LOFAR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_HDF5")
set(TARGET_LINK_LIBRARIES "${TARGET_LINK_LIBRARIES} hdf5 hdf5_cpp z")
set(TARGET_LINK_LIBRARIES ${TARGET_LINK_LIBRARIES} hdf5 hdf5_cpp z)
endif()
if($ENV{PSRDADA})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_PSRDADA")
set(TARGET_LINK_LIBRARIES "${TARGET_LINK_LIBRARIES} psrdada cudart")
set(TARGET_LINK_LIBRARIES ${TARGET_LINK_LIBRARIES} psrdada cudart)
endif()

# amber
Expand All @@ -24,7 +24,7 @@ add_executable(amber
src/Trigger.cpp
)
target_include_directories(amber PRIVATE include)
target_link_libraries(amber ${TARGET_LINK_LIBRARIES})
target_link_libraries(amber PRIVATE ${TARGET_LINK_LIBRARIES})

install(TARGETS amber
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
Expand Down

0 comments on commit 73d3f8b

Please sign in to comment.