1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Allow compiling in linux, GCC...

This commit is contained in:
andres 2014-11-01 03:14:34 +01:00
parent 3e45e4cc56
commit 766cbf8d45
2 changed files with 4 additions and 8 deletions

View File

@ -25,21 +25,18 @@
message(STATUS " START OF: Setup volk_gnsssdr as a subproject.")
set(VOLK_GNSSSDR_BASE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/volk_gnsssdr)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/volk_gnsssdr/lib)
list(APPEND CMAKE_C_FLAGS "-std=c11")
set (CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/volk_gnsssdr/install" CACHE PATH "Install prefix for volk_gnsssdr" FORCE )
add_subdirectory(${VOLK_GNSSSDR_BASE_PATH})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/volk_gnsssdr)
set(VOLK_GNSSSDR_INCLUDE_DIRS
${VOLK_GNSSSDR_BASE_PATH}/include
${CMAKE_CURRENT_SOURCE_DIR}/volk_gnsssdr/include
${CMAKE_CURRENT_BINARY_DIR}/volk_gnsssdr/include
CACHE INTERNAL ""
)
set(VOLK_GNSSSDR_LIBRARIES
#Path to libs of volk_gnsssdr target: ${VOLK_GNSSSDR_BASE_PATH}/lib/Debug/libvolk_gnsssdr.dylib
volk_gnsssdr
CACHE INTERNAL ""
)
@ -47,4 +44,3 @@ set(VOLK_GNSSSDR_LIBRARIES
message(STATUS " * INCLUDES: ${VOLK_GNSSSDR_INCLUDE_DIRS} ")
message(STATUS " * LIBS: ${VOLK_GNSSSDR_LIBRARIES} ")
message(STATUS " END OF: Setup volk_gnsssdr as a subproject.")

View File

@ -523,7 +523,7 @@ file(GLOB orc ${CMAKE_SOURCE_DIR}/orc/*.orc)
file(GLOB CommonMacros ${CMAKE_SOURCE_DIR}/kernels/CommonMacros/*.h ${CMAKE_SOURCE_DIR}/kernels/CommonMacros/README.txt)
#add_library(volk_gnsssdr SHARED ${volk_gnsssdr_sources})
add_library(volk_gnsssdr SHARED ${volk_gnsssdr_sources} ${h_files} ${CommonMacros} ${orc})
add_library(volk_gnsssdr STATIC ${volk_gnsssdr_sources} ${h_files} ${CommonMacros} ${orc})
source_group("Kernels" FILES ${h_files})
source_group("Common Macros" FILES ${CommonMacros})