Skip to content

Commit

Permalink
プロジェクトの依存関係を設定
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Sep 5, 2018
1 parent a4a955b commit 83a893c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions sakura_lang_en_US/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ file(GLOB_RECURSE RESOURCE_FILES ./*.rc)
add_library(${project_name} MODULE ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES})

add_dependencies(${project_name} HeaderMake)
add_dependencies(${project_name} OutHeaderMake)
add_dependencies(${project_name} OutGitHash)

get_target_property(HeaderMake_RUNTIME_OUTPUT_DIRECTORY HeaderMake RUNTIME_OUTPUT_DIRECTORY)
set(update_HeaderMake_BAT ${sakura_SOURCE_DIR}/../sakura/funccode.bat)
Expand All @@ -31,20 +33,6 @@ set(update_HeaderMake_DIR_DAT ${sakura_SOURCE_DIR})
set(update_gitHash_BAT ${sakura_SOURCE_DIR}/../sakura/githash.bat)
set(update_gitHash_DIR_DAT ${sakura_SOURCE_DIR})

# set pre-Build
add_custom_command(
TARGET ${project_name}
PRE_BUILD
COMMAND ${update_HeaderMake_BAT} ${update_HeaderMake_DIR_EXE} ${update_HeaderMake_DIR_DAT}
)

# set pre-Build
add_custom_command(
TARGET ${project_name}
PRE_BUILD
COMMAND ${update_gitHash_BAT} ${update_gitHash_DIR_DAT}
)

# add definition
add_definitions(-D_UNICODE -DUNICODE)
add_definitions(-DWIN32 -D_WINDOWS -DNOMINMAX -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501)
Expand Down

0 comments on commit 83a893c

Please sign in to comment.