22
22
########################################################################
23
23
include (GrPlatform) #define LIB_SUFFIX
24
24
25
+ ########################################################################
26
+ # Find boost
27
+ ########################################################################
28
+ if (UNIX AND EXISTS "/usr/lib" )
29
+ list (APPEND BOOST_LIBRARYDIR "/usr/lib" )
30
+ endif (UNIX AND EXISTS "/usr/lib" )
31
+ if (UNIX AND EXISTS "/usr/lib64" )
32
+ list (APPEND BOOST_LIBRARYDIR "/usr/lib64" ) #fedora 64-bit fix
33
+ endif (UNIX AND EXISTS "/usr/lib64" )
34
+ set (Boost_ADDITIONAL_VERSIONS
35
+ "1.35.0" "1.35" "1.36.0" "1.36" "1.37.0" "1.37" "1.38.0" "1.38" "1.39.0" "1.39"
36
+ "1.40.0" "1.40" "1.41.0" "1.41" "1.42.0" "1.42" "1.43.0" "1.43" "1.44.0" "1.44"
37
+ "1.45.0" "1.45" "1.46.0" "1.46" "1.47.0" "1.47" "1.48.0" "1.48" "1.49.0" "1.49"
38
+ "1.50.0" "1.50" "1.51.0" "1.51" "1.52.0" "1.52" "1.53.0" "1.53" "1.54.0" "1.54"
39
+ "1.55.0" "1.55" "1.56.0" "1.56" "1.57.0" "1.57" "1.58.0" "1.58" "1.59.0" "1.59"
40
+ "1.60.0" "1.60" "1.61.0" "1.61" "1.62.0" "1.62" "1.63.0" "1.63" "1.64.0" "1.64"
41
+ "1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" "1.69"
42
+ "1.74.0" "1.74" "1.81.0" "1.81"
43
+ )
44
+ find_package (Boost "1.74" REQUIRED COMPONENTS filesystem system )
45
+ add_definitions (-DBOOST_NO_CXX11_SCOPED_ENUMS)
46
+
25
47
include_directories (${Boost_INCLUDE_DIR} )
26
48
link_directories (${Boost_LIBRARY_DIRS} )
27
49
@@ -39,6 +61,7 @@ if(NOT fsk4_sources)
39
61
endif (NOT fsk4_sources)
40
62
41
63
add_library (gnuradio-fsk4 SHARED ${fsk4_sources} )
64
+ message ("adding boost libraries ${Boost_LIBRARIES} " )
42
65
target_link_libraries (gnuradio-fsk4 ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES} )
43
66
set_target_properties (gnuradio-fsk4 PROPERTIES DEFINE_SYMBOL "gnuradio_fsk4_EXPORTS" )
44
67
0 commit comments