Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
openMMC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
openMMC
Commits
857d1610
Commit
857d1610
authored
Dec 18, 2015
by
Henrique Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile trace folder in Debug build type
parent
955f6bf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
CMakeLists.txt
CMakeLists.txt
+8
-6
CMakeLists.txt
trace/CMakeLists.txt
+14
-0
No files found.
CMakeLists.txt
View file @
857d1610
...
...
@@ -9,10 +9,13 @@ project(afcipm C CXX ASM)
#
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
message
(
FATAL_ERROR
"No toolchain configuration file specified."
)
message
(
WARNING
"
${
ColourBold
}${
Red
}
No toolchain configuration file specified. Using default option!
${
ColourReset
}
"
)
include
(
build_cfg/toolchain/toolchain-arm-none-eabi.cmake
)
endif
()
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/
cmake
"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/
build_cfg
"
)
# Include user configuration
include
(
${
CMAKE_MODULE_PATH
}
/config.cmake
)
...
...
@@ -69,10 +72,9 @@ set(PROJ_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/afcipm.c)
add_subdirectory
(
FreeRTOS
)
add_subdirectory
(
port
)
add_subdirectory
(
modules
)
#if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# add_subdirectory(trace)
#endif()
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
add_subdirectory
(
trace
)
endif
()
#Link libraries
link_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/FreeRTOS
)
...
...
trace/CMakeLists.txt
0 → 100644
View file @
857d1610
set
(
TRACE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set
(
PROJ_HDRS
${
PROJ_HDRS
}
${
TRACE_PATH
}
)
set
(
PROJ_SRCS
${
PROJ_SRCS
}
${
TRACE_PATH
}
/trcBase.c
${
TRACE_PATH
}
/trcHardwarePort.c
${
TRACE_PATH
}
/trcKernel.c
${
TRACE_PATH
}
/trcKernelPortFreeRTOS.c
${
TRACE_PATH
}
/trcRecorder.c
${
TRACE_PATH
}
/trcUser.c
)
set
(
PROJ_SRCS
${
PROJ_SRCS
}
PARENT_SCOPE
)
set
(
PROJ_HDRS
${
PROJ_HDRS
}
PARENT_SCOPE
)
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