-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nasa#135, Add separate CMakeLists.txt for each implementation
Do not use aux_source_directory to assemble a list of source files. Instead, put a proper CMakeLists.txt file in each implementation and build the implementation separately from the shared/common parts. In addition to avoiding the aux_source_directory this allows PSP-specific compile definitions to be set on a per-implementation basis because it is defined separately.
- Loading branch information
Showing
4 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Build the mcp750-vxworks implementation as a library | ||
add_library(psp-${CFE_SYSTEM_PSPNAME}-impl OBJECT | ||
src/cfe_psp_exception.c | ||
src/cfe_psp_memory.c | ||
src/cfe_psp_memtab.c | ||
src/cfe_psp_ssr.c | ||
src/cfe_psp_start.c | ||
src/cfe_psp_support.c | ||
src/cfe_psp_timer.c | ||
src/cfe_psp_voltab.c | ||
src/cfe_psp_watchdog.c) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# Build the pc-linux implementation as a library | ||
add_library(psp-${CFE_SYSTEM_PSPNAME}-impl OBJECT | ||
src/cfe_psp_exception.c | ||
src/cfe_psp_memory.c | ||
src/cfe_psp_memtab.c | ||
src/cfe_psp_ssr.c | ||
src/cfe_psp_start.c | ||
src/cfe_psp_support.c | ||
src/cfe_psp_timer.c | ||
src/cfe_psp_voltab.c | ||
src/cfe_psp_watchdog.c) | ||
|
||
# Use _XOPEN_SOURCE=600 to enable X/Open group version 6 conformance | ||
target_compile_definitions(psp-${CFE_SYSTEM_PSPNAME}-impl PUBLIC | ||
_XOPEN_SOURCE=600 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Build the pc-rtems implementation as a library | ||
add_library(psp-${CFE_SYSTEM_PSPNAME}-impl OBJECT | ||
src/cfe_psp_exception.c | ||
src/cfe_psp_memory.c | ||
src/cfe_psp_memtab.c | ||
src/cfe_psp_ssr.c | ||
src/cfe_psp_start.c | ||
src/cfe_psp_support.c | ||
src/cfe_psp_timer.c | ||
src/cfe_psp_voltab.c | ||
src/cfe_psp_watchdog.c) | ||
|