forked from dankamongmen/notcurses
-
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.
[CMake] Restore old way of importing Notcurses into a cmake project
Partially reverts: c5c9432 Context: dankamongmen#1146 The above commit implemented the much more convenient way of finding and using a package from CMake, however it broke compatibility with the way id had been before, which defined various `Notcurses_*` variables. Revert the `Notcurses` component to the old way and add support for `Notcurses++` in the same fashion. Perhaps one day we should think of implementing `find_package` support by way of a module, which should make it possible to have the cake and eat the cake. One day.
- Loading branch information
Showing
3 changed files
with
35 additions
and
24 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,9 @@ | ||
@PACKAGE_INIT@ | ||
set(Notcurses++_DIR "@PACKAGE_SOME_INSTALL_DIR@") | ||
|
||
# Compute paths | ||
get_filename_component(Notcurses_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set(Notcurses++_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@") | ||
set(Notcurses++_LIBRARY_DIRS "@CONF_LIBRARY_DIRS@") | ||
|
||
set(Notcurses++_LIBRARIES -lnotcurses -lnotcurses++) |
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,9 @@ | ||
@PACKAGE_INIT@ | ||
set(Notcurses_DIR "@PACKAGE_SOME_INSTALL_DIR@") | ||
|
||
# Compute paths | ||
get_filename_component(Notcurses_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set(Notcurses_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@") | ||
set(Notcurses_LIBRARY_DIRS "@CONF_LIBRARY_DIRS@") | ||
|
||
set(Notcurses_LIBRARIES -lnotcurses) |