Skip to content

Commit

Permalink
sakura_SOURCE_DIR は利用できないので CMAKE_CURRENT_SOURCE_DIR を使う
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Oct 19, 2018
1 parent 9309f77 commit e58a37a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sakura/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
cmake_minimum_required(VERSION 3.0.2)

get_target_property(HeaderMake_RUNTIME_OUTPUT_DIRECTORY HeaderMake RUNTIME_OUTPUT_DIRECTORY)
set(sakura_project_dir ${CMAKE_CURRENT_SOURCE_DIR}/../sakura_core)
set(update_HeaderMake_BAT ${CMAKE_CURRENT_SOURCE_DIR}/funccode.bat)
set(update_HeaderMake_DIR_EXE ${HeaderMake_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR})
set(update_HeaderMake_DIR_DAT ${sakura_SOURCE_DIR})
set(update_HeaderMake_DIR_DAT ${sakura_project_dir})

set(update_gitHash_BAT ${CMAKE_CURRENT_SOURCE_DIR}/githash.bat)
set(update_gitHash_DIR_DAT ${sakura_SOURCE_DIR})
set(update_gitHash_DIR_DAT ${sakura_project_dir})

add_custom_target(OutHeaderMake ${update_HeaderMake_BAT} ${update_HeaderMake_DIR_EXE} ${update_HeaderMake_DIR_DAT})
add_custom_target(OutGitHash ${update_gitHash_BAT} ${update_gitHash_DIR_DAT})

0 comments on commit e58a37a

Please sign in to comment.