Skip to content

Commit

Permalink
Merge pull request #249 from sunpoet/master
Browse files Browse the repository at this point in the history
Fix examples installation and respect KML_EXAMPLES_DIR
  • Loading branch information
rashadkm committed Jan 15, 2017
2 parents c488223 + ecc4413 commit 916a801
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/domviewer/CMakeLists.txt
@@ -1,3 +1,3 @@
if(INSTALL_EXAMPLES)
install( FILES kml-aliases.txt DESTINATION ${KML_EXAMPLES_DIR} COMPONENT Development)
install( FILES domviewer.py DESTINATION ${KML_EXAMPLES_DIR} COMPONENT Development)
endif()
2 changes: 1 addition & 1 deletion examples/engine/CMakeLists.txt
Expand Up @@ -60,5 +60,5 @@ build_example(

if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(FILES ${eg_files} DESTINATION examples/engine)
install(FILES ${eg_files} DESTINATION ${KML_EXAMPLES_DIR}/engine)
endif(INSTALL_EXAMPLES)
2 changes: 1 addition & 1 deletion examples/gpx/CMakeLists.txt
Expand Up @@ -9,5 +9,5 @@ build_example(

if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(FILES ${eg_files} DESTINATION examples/gpx)
install(FILES ${eg_files} DESTINATION ${KML_EXAMPLES_DIR}/gpx)
endif(INSTALL_EXAMPLES)
2 changes: 1 addition & 1 deletion examples/gx/CMakeLists.txt
Expand Up @@ -12,5 +12,5 @@ if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(
FILES ${eg_files}
DESTINATION examples/gx)
DESTINATION ${KML_EXAMPLES_DIR}/gx)
endif()
4 changes: 2 additions & 2 deletions examples/hellonet/CMakeLists.txt
Expand Up @@ -77,9 +77,9 @@ if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(
FILES ${eg_files}
DESTINATION examples/hellonet)
DESTINATION ${KML_EXAMPLES_DIR}/hellonet)

install(
FILES README curlfetch.h prompt.h
DESTINATION examples/hellonet)
DESTINATION ${KML_EXAMPLES_DIR}/hellonet)
endif()
4 changes: 2 additions & 2 deletions examples/java/CMakeLists.txt
Expand Up @@ -2,8 +2,8 @@ if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.java")
install(
FILES ${eg_files}
DESTINATION examples/java) ##compile java
DESTINATION ${KML_EXAMPLES_DIR}/java) ##compile java
install(
FILES run.sh
DESTINATION examples/java) ##
DESTINATION ${KML_EXAMPLES_DIR}/java) ##
endif()
2 changes: 1 addition & 1 deletion examples/kml/CMakeLists.txt
Expand Up @@ -2,5 +2,5 @@ if(INSTALL_EXAMPLES)
file(GLOB kml_files "${CMAKE_CURRENT_SOURCE_DIR}/*.kml")
install(
FILES ${kml_files}
DESTINATION examples/kml)
DESTINATION ${KML_EXAMPLES_DIR}/kml)
endif()
2 changes: 1 addition & 1 deletion examples/python/CMakeLists.txt
Expand Up @@ -2,5 +2,5 @@ if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.py")
install(
FILES ${eg_files}
DESTINATION examples/python) ##compile python
DESTINATION ${KML_EXAMPLES_DIR}/python) ##compile python
endif()
2 changes: 1 addition & 1 deletion examples/regionator/CMakeLists.txt
Expand Up @@ -10,5 +10,5 @@ if(INSTALL_EXAMPLES)
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(
FILES ${eg_files}
DESTINATION examples/regionator)
DESTINATION ${KML_EXAMPLES_DIR}/regionator)
endif()
6 changes: 3 additions & 3 deletions examples/xsd/CMakeLists.txt
@@ -1,5 +1,5 @@
if(INSTALL_EXAMPLES)
install(FILES
domviewer.py
DESTINATION examples/xsd) #compile py
file(GLOB eg_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
install(FILES ${eg_files} DESTINATION ${KML_EXAMPLES_DIR}/xsd)
install(FILES kml-aliases.txt DESTINATION ${KML_EXAMPLES_DIR}/xsd)
endif()

0 comments on commit 916a801

Please sign in to comment.