1 cmake_minimum_required (VERSION 2.6)
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)
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
14 add_library(bar SHARED ${CustComDepend_BINARY_DIR}/bar.c)