-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat all CMake scripts using cmake-format
- Loading branch information
Showing
14 changed files
with
636 additions
and
628 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,24 @@ | ||
set(CUNIT_SEARCH_PATHS /usr/local/ /usr /opt) | ||
|
||
SET(CUNIT_SEARCH_PATHS | ||
/usr/local/ | ||
/usr | ||
/opt | ||
) | ||
find_path( | ||
CUNIT_INCLUDE_DIR CUnit/CUnit.h | ||
HINTS | ||
PATH_SUFFIXES include | ||
PATHS ${CUNIT_SEARCH_PATHS}) | ||
find_library( | ||
CUNIT_LIBRARY cunit | ||
HINTS | ||
PATH_SUFFIXES lib64 lib bin | ||
PATHS ${CUNIT_SEARCH_PATHS}) | ||
|
||
FIND_PATH(CUNIT_INCLUDE_DIR CUnit/CUnit.h | ||
HINTS | ||
PATH_SUFFIXES include | ||
PATHS ${CUNIT_SEARCH_PATHS} | ||
) | ||
FIND_LIBRARY(CUNIT_LIBRARY cunit | ||
HINTS | ||
PATH_SUFFIXES lib64 lib bin | ||
PATHS ${CUNIT_SEARCH_PATHS} | ||
) | ||
if(CUNIT_INCLUDE_DIR AND CUNIT_LIBRARY) | ||
set(CUNIT_FOUND TRUE) | ||
endif(CUNIT_INCLUDE_DIR AND CUNIT_LIBRARY) | ||
|
||
IF (CUNIT_INCLUDE_DIR AND CUNIT_LIBRARY) | ||
SET(CUNIT_FOUND TRUE) | ||
ENDIF (CUNIT_INCLUDE_DIR AND CUNIT_LIBRARY) | ||
|
||
IF (CUNIT_FOUND) | ||
MESSAGE(STATUS "Found CUnit: ${CUNIT_LIBRARY}") | ||
ELSE (CUNIT_FOUND) | ||
MESSAGE(STATUS "Could not find CUnit. Tests will not be available.") | ||
ENDIF (CUNIT_FOUND) | ||
if(CUNIT_FOUND) | ||
message(STATUS "Found CUnit: ${CUNIT_LIBRARY}") | ||
else(CUNIT_FOUND) | ||
message(STATUS "Could not find CUnit. Tests will not be available.") | ||
endif(CUNIT_FOUND) | ||
|
||
mark_as_advanced(CUNIT_INCLUDE_DIR CUNIT_LIBRARY CUNIT_SEARCH_PATHS) |
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,28 @@ | ||
set(EPOXY_SEARCH_PATHS /usr/local /usr /opt) | ||
|
||
find_path(EPOXY_INCLUDE_DIR epoxy/gl.h | ||
HINTS | ||
PATH_SUFFIXES include | ||
PATHS ${EPOXY_SEARCH_PATHS} | ||
) | ||
find_library(EPOXY_LIBRARY epoxy | ||
HINTS | ||
PATH_SUFFIXES lib64 lib | ||
PATHS ${EPOXY_SEARCH_PATHS} | ||
) | ||
find_path( | ||
EPOXY_INCLUDE_DIR epoxy/gl.h | ||
HINTS | ||
PATH_SUFFIXES include | ||
PATHS ${EPOXY_SEARCH_PATHS}) | ||
find_library( | ||
EPOXY_LIBRARY epoxy | ||
HINTS | ||
PATH_SUFFIXES lib64 lib | ||
PATHS ${EPOXY_SEARCH_PATHS}) | ||
|
||
if (EPOXY_INCLUDE_DIR AND EPOXY_LIBRARY) | ||
set(EPOXY_FOUND TRUE) | ||
endif () | ||
if(EPOXY_INCLUDE_DIR AND EPOXY_LIBRARY) | ||
set(EPOXY_FOUND TRUE) | ||
endif() | ||
|
||
if (EPOXY_FOUND) | ||
add_library(Epoxy::Main UNKNOWN IMPORTED) | ||
set_target_properties(Epoxy::Main PROPERTIES | ||
IMPORTED_LOCATION "${EPOXY_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${EPOXY_INCLUDE_DIR}") | ||
message(STATUS "Found libepoxy: ${EPOXY_LIBRARY}") | ||
else () | ||
message(WARNING "Could not find libepoxy") | ||
endif () | ||
if(EPOXY_FOUND) | ||
add_library(Epoxy::Main UNKNOWN IMPORTED) | ||
set_target_properties( | ||
Epoxy::Main PROPERTIES IMPORTED_LOCATION "${EPOXY_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${EPOXY_INCLUDE_DIR}") | ||
message(STATUS "Found libepoxy: ${EPOXY_LIBRARY}") | ||
else() | ||
message(WARNING "Could not find libepoxy") | ||
endif() | ||
|
||
mark_as_advanced(EPOXY_INCLUDE_DIR EPOXY_LIBRARY EPOXY_SEARCH_PATHS) |
Oops, something went wrong.