-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ign-common3] Miscellaneous Cleanups (#107)
* Use variable substitution to prevent forward port issues * Add string Join functionality * Replace all uses of env with Ignition functions Signed-off-by: Michael Carroll <[email protected]>
- Loading branch information
Showing
6 changed files
with
144 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | ||
|
||
# Find the ignition-common library | ||
find_package(ignition-common4 QUIET REQUIRED COMPONENTS events profiler) | ||
set(IGN_COMMON_VER 4) | ||
find_package(ignition-common${IGN_COMMON_VER} QUIET REQUIRED COMPONENTS events profiler) | ||
|
||
add_executable(assert_example assert_example.cc) | ||
target_link_libraries(assert_example ignition-common4::core) | ||
target_link_libraries(assert_example ignition-common${IGN_COMMON_VER}::core) | ||
|
||
add_executable(console_example console.cc) | ||
target_link_libraries(console_example ignition-common4::core) | ||
target_link_libraries(console_example ignition-common${IGN_COMMON_VER}::core) | ||
|
||
add_executable(events_example events.cc) | ||
target_link_libraries(events_example ignition-common4::events) | ||
target_link_libraries(events_example ignition-common${IGN_COMMON_VER}::events) | ||
|
||
add_executable(profiler_example profiler.cc) | ||
target_link_libraries(profiler_example ignition-common4::profiler) | ||
target_link_libraries(profiler_example ignition-common${IGN_COMMON_VER}::profiler) | ||
target_compile_definitions(profiler_example PUBLIC "IGN_PROFILER_ENABLE=1") |
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
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
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