cmake_minimum_required(VERSION 3.0) include(FindPkgConfig) set(AD5791_src_files DAC-AD5791/AD5791.cpp ) set(Datel_src_files Datel-PCI416/Datel-PCI416.cpp ) set(dummy_src_files dummy/dummy.cpp dummy/temperature_dummy.cpp ) set(Eurotherm_src_files # Eurotherm-2000Series/control.cpp Eurotherm-2000Series/Eurotherm-2000Series.cpp # Eurotherm-2000Series/gnuplot_output.cpp # Eurotherm-2000Series/test.cpp ) set(PTS_src_files PTS-Synthesizer/PTS.cpp PTS-Synthesizer/PTS_test.cpp ) set(M2i40xx_src_files Spectrum-M2i40xxSeries/GatedData.cpp Spectrum-M2i40xxSeries/Spectrum-M2i40xxSeries.cpp # Spectrum-M2i40xxSeries/test.cpp ) set(MI40xx_src_files Spectrum-MI40xxSeries/GatedData.cpp # Spectrum-MI40xxSeries/hw_test_extclock.cpp # Spectrum-MI40xxSeries/hw_test_intclock.cpp Spectrum-MI40xxSeries/Spectrum-MI40xxSeries.cpp # Spectrum-MI40xxSeries/test.cpp ) set(PB_src_files # SpinCore-PulseBlaster/pulseblaster.c # SpinCore-PulseBlaster/pulseblaster_test.cpp # SpinCore-PulseBlaster/PulseBlasterProgram.cpp SpinCore-PulseBlaster/SpinCore-PulseBlaster.cpp # SpinCore-PulseBlaster/TestCase.cpp ) set(PB24_src_files SpinCore-PulseBlaster24Bit/SpinCore-PulseBlaster24Bit.cpp # SpinCore-PulseBlaster24Bit/test.cpp ) set(PBDDS_src_files SpinCore-PulseBlasterDDSIII/SpinCore-PulseBlasterDDSIII.cpp # SpinCore-PulseBlasterDDSIII/test.cpp ) set(DAC20_src_files Tecmag-DAC20/DAC20.cpp # Tecmag-DAC20/DAC_test.cpp ) set(tiepie_src_files TiePie-HS3/HS3test.cpp TiePie-HS3/TiePie-HS3.cpp TiePie-HS3/tiepie.cpp ) include_directories(..) # https://cmake.org/Wiki/CMake/Tutorials/Object_Library add_library(AD5791 STATIC ${AD5791_src_files}) #add_library(Datel STATIC ${Datel_src_files}) add_library(dummy STATIC ${dummy_src_files}) add_library(Eurotherm-2000Series STATIC ${Eurotherm_src_files} tempcont.cpp) add_library(PTS STATIC ${PTS_src_files}) add_library(Spectrum_M2i40xxSeries STATIC ${M2i40xx_src_files}) add_library(Spectrum_MI40xxSeries STATIC ${MI40xx_src_files}) add_subdirectory(SpinCore-PulseBlaster) #add_library(PB STATIC ${general_src_files} SpinCore-PulseBlaster/SpinCore-PulseBlaster.cpp) #add_library(PB_PROG STATIC ${general_src_files} SpinCore-PulseBlaster/PulseBlasterProgram.cpp) add_library(PB24 STATIC ${PB24_src_files}) add_library(PBDDS STATIC ${PBDDS_src_files}) add_library(Tecmag-DAC20 STATIC ${DAC20_src_files}) #add_library(tiepie STATIC ${general_src_files} ${tiepie_src_files})