-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick Masselink <[email protected]>
- Loading branch information
1 parent
1c9bc19
commit 2cfdc1b
Showing
5 changed files
with
61 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,25 @@ | ||
set(CMAKE_SYSTEM_NAME QNX) | ||
set(CMAKE_SYSTEM_VERSION ${QNX_VERSION}) | ||
set(CMAKE_SYSTEM_PROCESSOR ${QNX_PROCESSOR}) | ||
|
||
set(CMAKE_C_COMPILER qcc) | ||
set(CMAKE_CXX_COMPILER q++) | ||
|
||
set(CMAKE_C_COMPILER_TARGET ${QNX_TOOLCHAIN_ARCH}) | ||
set(CMAKE_CXX_COMPILER_TARGET ${QNX_TOOLCHAIN_ARCH}) | ||
|
||
if(NOT DEFINED ENV{QNX_HOST} OR NOT DEFINED ENV{QNX_TARGET}) | ||
message(FATAL_ERROR "Environment variable(s) QNX_HOST and/or QNX_TARGET not set! Set the QNX SDP environment by running e.g. 'source qnxsdp-env.sh'") | ||
endif() | ||
|
||
set(CMAKE_FIND_ROOT_PATH $ENV{QNX_TARGET};$ENV{QNX_TARGET}/${CMAKE_SYSTEM_PROCESSOR}) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
|
||
add_compile_options("-D_QNX_SOURCE=1") | ||
|
||
# Default features which are not supported by QNX and need to be disabled | ||
set(ENABLE_SOURCE_SPECIFIC_MULTICAST 0) | ||
|
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,5 @@ | ||
set(QNX_VERSION 7.1.0) | ||
set(QNX_PROCESSOR aarch64le) | ||
set(QNX_TOOLCHAIN_ARCH gcc_ntoaarch64le) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/qnx-common.cmake") |
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,5 @@ | ||
set(QNX_VERSION 7.1.0) | ||
set(QNX_PROCESSOR x86_64) | ||
set(QNX_TOOLCHAIN_ARCH gcc_ntox86_64) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/qnx-common.cmake") |
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