mirror of
https://github.com/reactos/CMake.git
synced 2024-12-28 06:27:28 +00:00
7bbaa4283d
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
15 lines
537 B
CMake
15 lines
537 B
CMake
cmake_minimum_required (VERSION 2.6)
|
|
project(CustComDepend)
|
|
include_directories("${CustComDepend_SOURCE_DIR}")
|
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1)
|
|
set(EXECUTABLE_OUTPUT_PATH ${CustComDepend_BINARY_DIR}/bin)
|
|
add_executable(foo foo.cxx)
|
|
add_custom_command(
|
|
OUTPUT ${CustComDepend_BINARY_DIR}/bar.c
|
|
COMMAND ${CustComDepend_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/foo
|
|
${CustComDepend_BINARY_DIR}/bar.c
|
|
DEPENDS ${CustComDepend_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/foo
|
|
)
|
|
|
|
add_library(bar SHARED ${CustComDepend_BINARY_DIR}/bar.c)
|