Skip to content
Snippets Groups Projects
Commit 7e2b1a04 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Fix project name (dash to underscore). Add plural cmake find variables _DIRS, _LIBRARIES

parent 81943089
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ if(COMMAND cmake_policy) ...@@ -7,7 +7,7 @@ if(COMMAND cmake_policy)
endif(COMMAND cmake_policy) endif(COMMAND cmake_policy)
# The project name and the type of project # The project name and the type of project
PROJECT(ptu-d46) PROJECT(ptu_d46)
SET(CPACK_PACKAGE_VERSION "1.0.0") SET(CPACK_PACKAGE_VERSION "1.0.0")
SET(CPACK_PACKAGE_VERSION_MAJOR "1") SET(CPACK_PACKAGE_VERSION_MAJOR "1")
......
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH(ptu_d46_INCLUDE_DIR ptu_commands.h ptu_d46.h /usr/include/iri/ptu_d46 /usr/local/include/iri/ptu_d46) FIND_PATH(ptu_d46_INCLUDE_DIRS ptu_commands.h ptu_d46.h /usr/include/iri/ptu_d46 /usr/local/include/iri/ptu_d46)
FIND_LIBRARY(ptu_d46_LIBRARY FIND_LIBRARY(ptu_d46_LIBRARIES
NAMES ptu_d46 NAMES ptu_d46
PATHS /usr/lib/iri/ptu_d46 /usr/local/lib /usr/local/lib/iri/ptu_d46) PATHS /usr/lib /usr/lib/iri/ptu_d46 /usr/local/lib /usr/local/lib/iri/ptu_d46)
SET(ptu_d46_INCLUDE_DIRS ${ptu_d46_INCLUDE_DIR})
SET(ptu_d46_LIBRARIES ${ptu_d46_LIBRARY})
IF (ptu_d46_INCLUDE_DIR AND ptu_d46_LIBRARY) IF (ptu_d46_INCLUDE_DIR AND ptu_d46_LIBRARY)
SET(ptu_d46_FOUND TRUE) SET(ptu_d46_FOUND TRUE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment