mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Allow compiling in linux, GCC...
This commit is contained in:
parent
3e45e4cc56
commit
766cbf8d45
@ -25,21 +25,18 @@
|
|||||||
|
|
||||||
message(STATUS " START OF: Setup volk_gnsssdr as a subproject.")
|
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")
|
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
|
set(VOLK_GNSSSDR_INCLUDE_DIRS
|
||||||
${VOLK_GNSSSDR_BASE_PATH}/include
|
${CMAKE_CURRENT_SOURCE_DIR}/volk_gnsssdr/include
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/volk_gnsssdr/include
|
${CMAKE_CURRENT_BINARY_DIR}/volk_gnsssdr/include
|
||||||
CACHE INTERNAL ""
|
CACHE INTERNAL ""
|
||||||
)
|
)
|
||||||
|
|
||||||
set(VOLK_GNSSSDR_LIBRARIES
|
set(VOLK_GNSSSDR_LIBRARIES
|
||||||
#Path to libs of volk_gnsssdr target: ${VOLK_GNSSSDR_BASE_PATH}/lib/Debug/libvolk_gnsssdr.dylib
|
|
||||||
volk_gnsssdr
|
volk_gnsssdr
|
||||||
CACHE INTERNAL ""
|
CACHE INTERNAL ""
|
||||||
)
|
)
|
||||||
@ -47,4 +44,3 @@ set(VOLK_GNSSSDR_LIBRARIES
|
|||||||
message(STATUS " * INCLUDES: ${VOLK_GNSSSDR_INCLUDE_DIRS} ")
|
message(STATUS " * INCLUDES: ${VOLK_GNSSSDR_INCLUDE_DIRS} ")
|
||||||
message(STATUS " * LIBS: ${VOLK_GNSSSDR_LIBRARIES} ")
|
message(STATUS " * LIBS: ${VOLK_GNSSSDR_LIBRARIES} ")
|
||||||
message(STATUS " END OF: Setup volk_gnsssdr as a subproject.")
|
message(STATUS " END OF: Setup volk_gnsssdr as a subproject.")
|
||||||
|
|
||||||
|
@ -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)
|
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})
|
||||||
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("Kernels" FILES ${h_files})
|
||||||
source_group("Common Macros" FILES ${CommonMacros})
|
source_group("Common Macros" FILES ${CommonMacros})
|
||||||
|
Loading…
Reference in New Issue
Block a user