start new branch for a syntax checker

This commit is contained in:
Enno Rehling 2018-09-27 19:52:54 +02:00
parent 88f0504f48
commit 17f7aa2c0a
2 changed files with 15 additions and 3 deletions

View File

@ -142,6 +142,10 @@ set (ERESSEA_SRC
${UTIL_SRC} ${UTIL_SRC}
) )
set(CHECK_SRC
checker.c
)
set(SERVER_SRC set(SERVER_SRC
bind_building.c bind_building.c
bind_config.c bind_config.c
@ -176,10 +180,10 @@ if(NOT IWYU_PATH)
message(STATUS "Could not find the program include-what-you-use") message(STATUS "Could not find the program include-what-you-use")
endif() endif()
add_library(version STATIC ${VERSION_SRC}) add_library(version STATIC ${VERSION_SRC})
add_library(game ${ERESSEA_SRC}) add_library(game ${ERESSEA_SRC})
add_executable(eressea ${SERVER_SRC}) add_executable(eressea ${SERVER_SRC})
add_executable(checker ${CHECK_SRC})
if (IWYU_PATH) if (IWYU_PATH)
set_property(TARGET eressea PROPERTY C_INCLUDE_WHAT_YOU_USE ${IWYU_PATH}) set_property(TARGET eressea PROPERTY C_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
endif(IWYU_PATH) endif(IWYU_PATH)

8
src/checker.c Normal file
View File

@ -0,0 +1,8 @@
#ifdef _MSV_VER
#include <platform.h>
#endif
int main(int argc, char **argv) {
return 0;
}