Updated formatting of documentation plus a little reorganization.
[cmake.git] / Tests / CustComDepend / CMakeLists.txt
blobd5266842da09624b90b0321dde04eff34a32852e
1 cmake_minimum_required (VERSION 2.6)
2 project(CustComDepend)
3 include_directories("${CustComDepend_SOURCE_DIR}")
4 add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1)
5 set(EXECUTABLE_OUTPUT_PATH ${CustComDepend_BINARY_DIR}/bin)
6 add_executable(foo foo.cxx)
7 add_custom_command(
8   OUTPUT ${CustComDepend_BINARY_DIR}/bar.c
9   COMMAND ${CustComDepend_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/foo
10   ${CustComDepend_BINARY_DIR}/bar.c
11   DEPENDS ${CustComDepend_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/foo
13   
14 add_library(bar SHARED ${CustComDepend_BINARY_DIR}/bar.c)