-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d878f70
commit 3290618
Showing
3 changed files
with
59 additions
and
37 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,3 @@ | ||
include(CMakeFindDependencyMacro) | ||
# find_dependency(xxx 2.0) | ||
include(${CMAKE_CURRENT_LIST_DIR}/geodesyTargets.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 |
---|---|---|
@@ -1,28 +1,6 @@ | ||
add_library(geodesy) | ||
|
||
target_sources(geodesy | ||
PRIVATE | ||
cartesian_to_spherical.cpp | ||
geodetic_to_lvlh.cpp | ||
spherical_to_cartesian.cpp | ||
${CMAKE_SOURCE_DIR}/src/cartesian_to_spherical.cpp | ||
${CMAKE_SOURCE_DIR}/src/geodetic_to_lvlh.cpp | ||
${CMAKE_SOURCE_DIR}/src/spherical_to_cartesian.cpp | ||
) | ||
|
||
target_include_directories(geodesy | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/../include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../include/core | ||
) | ||
|
||
# We need the Eigen-3 library | ||
target_link_libraries(geodesy PRIVATE Eigen3::Eigen) | ||
|
||
# Install headers at: $PREFIX/geodesy/... | ||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/ | ||
DESTINATION include/geodesy | ||
) | ||
|
||
# install library | ||
install(TARGETS geodesy | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin) |