enable debug flag in debug build mode

This commit is contained in:
Yuichi Nishiwaki 2014-03-02 12:29:23 +09:00
parent a6ce873b61
commit 4a8bacd12c
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ execute_process(
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
set(CMAKE_C_FLAGS "-std=c99") set(CMAKE_C_FLAGS "-std=c99")
set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1")
# external libraries # external libraries
add_library(xfile SHARED extlib/xfile/xfile.c) add_library(xfile SHARED extlib/xfile/xfile.c)