1 2 3 4 5 6 7 8 9 10 11
|
# Place executables and shared libs under "build-dir/",
# instead of under "build-dir/my/sub/dir/"
# This way, we have the build-dir structure more like the install-dir one,
# which makes testing spring in the builddir easier, eg. like this:
# cd build-dir
# SPRING_DATADIR=$(pwd) ./spring
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
ADD_EXECUTABLE(dirchange EXCLUDE_FROM_ALL dirchange)
SET_TARGET_PROPERTIES(dirchange PROPERTIES OUTPUT_NAME "dch")
|