Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
f1298f80
Commit
f1298f80
authored
Feb 16, 2016
by
kaltenbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added CMakeLists.txt to LMSSDR/lmsSDR
parent
d9ec978c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
targets/ARCH/LMSSDR/USERSPACE/LIB/lmsSDR/CMakeLists.txt
targets/ARCH/LMSSDR/USERSPACE/LIB/lmsSDR/CMakeLists.txt
+58
-0
No files found.
targets/ARCH/LMSSDR/USERSPACE/LIB/lmsSDR/CMakeLists.txt
0 → 100644
View file @
f1298f80
cmake_minimum_required
(
VERSION 2.8
)
set
(
CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE TYPE INTERNAL FORCE
)
project
(
"matlab_StreamDLL"
)
#include modules for finding CyAPI
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake/Modules/"
)
cmake_policy
(
SET CMP0015 OLD
)
if
(
${
CMAKE_MAJOR_VERSION
}
GREATER 2
)
cmake_policy
(
SET CMP0043 NEW
)
endif
()
ADD_DEFINITIONS
(
-D_CRT_SECURE_NO_WARNINGS
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x -fPIC"
)
endif
()
# Add sub-directories
add_subdirectory
(
LMS_StreamBoard
)
include_directories
(
LMS_StreamBoard
)
add_subdirectory
(
connectionManager
)
include_directories
(
connectionManager
)
set
(
BINARY_OUTPUT_DIR
"
${
CMAKE_BINARY_DIR
}
/bin"
)
if
(
MSVC
)
SET
(
MSVC_MULTITHREAD_COMPILE_FLAGS
"/MP"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
MSVC_MULTITHREAD_COMPILE_FLAGS
}
"
)
endif
(
MSVC
)
set
(
Library_file_list LMS_SDR.cpp
)
set
(
BUILD_STATIC_LIB OFF CACHE BOOL
"Build static or dynamic library"
)
if
(
BUILD_STATIC_LIB
)
add_library
(
LMS_SDR STATIC
${
Library_file_list
}
)
else
()
add_library
(
LMS_SDR SHARED
${
Library_file_list
}
)
endif
(
BUILD_STATIC_LIB
)
set
(
AUTO_UPDATE_VERSION OFF CACHE BOOL
"Uses python script to increment version"
)
if
(
AUTO_UPDATE_VERSION
)
add_custom_target
(
updateVersion ALL COMMAND python
${
CMAKE_CURRENT_SOURCE_DIR
}
/auto_version.py WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_dependencies
(
LMS_SDR updateVersion
)
endif
()
target_link_libraries
(
LMS_SDR
LMS_StreamBoard
${
CYAPI_LIBRARIES
}
)
if
(
WIN32
)
find_package
(
CyAPI REQUIRED
)
LINK_DIRECTORIES
(
${
CYAPI_LIBRARIES
}
)
include_directories
(
${
CYAPI_INCLUDE_DIRS
}
)
set
(
CONNECTION_MANAGER_LIBS
${
CYAPI_LIBRARIES
}
SetupAPI
)
endif
()
if
(
UNIX
)
set
(
CONNECTION_MANAGER_LIBS usb-1.0 -lpthread
)
endif
()
target_link_libraries
(
LMS_SDR
${
CONNECTION_MANAGER_LIBS
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment