Browse Source

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

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/13/head
aneejit1 1 year ago
parent
commit
25ac4bb89d
  1. 2
      kbruch/CMakeLists.txt
  2. 2
      kig/CMakeLists.txt

2
kbruch/CMakeLists.txt

@ -3,6 +3,6 @@ add_subdirectory( testcases )
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}\""
)

2
kig/CMakeLists.txt

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

Loading…
Cancel
Save