Write generated source files to the binary directory instead of the source

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/13/head
aneejit1 4 years ago
parent eed53a4118
commit 25ac4bb89d

@ -3,6 +3,6 @@ add_subdirectory( testcases )
file( STRINGS "VERSION" _KBRUCH_VERSION ) file( STRINGS "VERSION" _KBRUCH_VERSION )
file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/src/version.h file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/src/version.h
"#undef KBRUCH_VERSION\n#define KBRUCH_VERSION \"${_KBRUCH_VERSION}\"" "#undef KBRUCH_VERSION\n#define KBRUCH_VERSION \"${_KBRUCH_VERSION}\""
) )

@ -28,7 +28,7 @@ link_directories(
##### libkigpart (kpart) ##### libkigpart (kpart)
file( WRITE dummy.cpp "" ) file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" )
tde_add_kpart( libkigpart AUTOMOC tde_add_kpart( libkigpart AUTOMOC

Loading…
Cancel
Save