Skip to content

Commit

Permalink
Add prefix to CMake variables, make install option visible
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Mar 23, 2019
1 parent 2753fc9 commit d98033e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ project(sf2cute
LANGUAGES C CXX
VERSION 0.2.0)

set(EXAMPLES_INSTALL_DIR "bin" CACHE "PATH" "Where to install the examples")
set(SF2CUTE_EXAMPLES_INSTALL_DIR "bin" CACHE "PATH" "Where to install the examples")
option(SF2CUTE_INSTALL_EXAMPLES "Install example executables" ON)

#============================================================================
# sf2cute library
Expand Down Expand Up @@ -139,9 +140,9 @@ install(
DESTINATION share/sf2cute
)

if(NOT DISABLE_INSTALL_EXAMPLES)
if(SF2CUTE_INSTALL_EXAMPLES)
install(
TARGETS write_sf2
RUNTIME DESTINATION ${EXAMPLES_INSTALL_DIR}
RUNTIME DESTINATION ${SF2CUTE_EXAMPLES_INSTALL_DIR}
)
endif()

0 comments on commit d98033e

Please sign in to comment.