<commit_before>include_directories(${CMAKE_SOURCE_DIR}/Engine)

if (UNIX)
	install(DIRECTORY ${CMAKE_SOURCE_DIR}/dist/bin/datafiles
		DESTINATION ./
		CONFIGURATIONS All
	)
	install(FILES ${CMAKE_SOURCE_DIR}/dist/bin/plugins.cfg
		${CMAKE_SOURCE_DIR}/dist/bin/resources.cfg
		DESTINATION ./
		CONFIGURATIONS All
	)
endif(UNIX)

set(CORE_SOURCE_FILES
    Main.cpp
    AppStateManager.cpp
    DotSceneLoader.cpp
    GameState.cpp
    LoginState.cpp 
    MenuState.cpp
    OgreFramework.cpp
    XsiliumApp.cpp
    Console/Console.cpp
    Authentification/Authentification.cpp
)

set(CORE_HEADER_FILES
    AppState.h
    AppStateManager.h
    DotSceneLoader.h 
    GameState.h
    LoginState.h
    MenuState.h 
    rapidxml.h 
    OgreFramework.h
    XsiliumApp.h 
    Console/Console.h
    Authentification/Authentification.h
)

include_directories(
${OGRE_INCLUDE_DIRS} 
${OIS_INCLUDE_DIR} 
${OGRE_Terrain_INCLUDE_DIRS} 
${CEGUI_INCLUDE_DIR} 
${CEGUI_OGRE_RENDERER_INCLUDE_DIR}
${OGRE_PAGED_INCLUDE_DIR}
Console 
Authentification
)


link_libraries(
${OGRE_LIBRARIES} 
${OGRE_Terrain_LIBRARIES}
${OIS_LIBRARIES}
${CEGUI_LIBRARY}
${OGRE_PAGED_LIBRARY}
XsiliumEngine
pcre
)

    add_executable(XsiliumClient
		   ${CORE_SOURCE_FILES}
		   ${CORE_HEADER_FILES}
                  )


if (APPLE AND NOT OGRE_BUILD_PLATFORM_APPLE_IOS)

set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/OgreFramework.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++")<commit_msg>mise a jour de cmakelist pour la compilation<commit_after>include_directories(${CMAKE_SOURCE_DIR}/Engine)

if (UNIX)
	install(DIRECTORY ${CMAKE_SOURCE_DIR}/dist/bin/datafiles
		DESTINATION ./
		CONFIGURATIONS All
	)
	install(FILES ${CMAKE_SOURCE_DIR}/dist/bin/plugins.cfg
		${CMAKE_SOURCE_DIR}/dist/bin/resources.cfg
		DESTINATION ./
		CONFIGURATIONS All
	)
endif(UNIX)

set(CORE_SOURCE_FILES
    Main.cpp
    AppStateManager.cpp
    DotSceneLoader.cpp
    GameState.cpp
    Login/LoginState.cpp 
    MenuState.cpp
    OgreFramework.cpp
    XsiliumApp.cpp
    Console/Console.cpp
    Login/Authentification/Authentification.cpp
)

set(CORE_HEADER_FILES
    AppState.h
    AppStateManager.h
    DotSceneLoader.h 
    GameState.h
    Login/LoginState.h
    MenuState.h 
    rapidxml.h 
    OgreFramework.h
    XsiliumApp.h 
    Console/Console.h
    Login/Authentification/Authentification.h
)

include_directories(
${OGRE_INCLUDE_DIRS} 
${OIS_INCLUDE_DIR} 
${OGRE_Terrain_INCLUDE_DIRS} 
${CEGUI_INCLUDE_DIR} 
${CEGUI_OGRE_RENDERER_INCLUDE_DIR}
${OGRE_PAGED_INCLUDE_DIR}
Console 
Login
.
)


link_libraries(
${OGRE_LIBRARIES} 
${OGRE_Terrain_LIBRARIES}
${OIS_LIBRARIES}
${CEGUI_LIBRARY}
${OGRE_PAGED_LIBRARY}
XsiliumEngine
pcre
)

    add_executable(XsiliumClient
		   ${CORE_SOURCE_FILES}
		   ${CORE_HEADER_FILES}
                  )


if (APPLE AND NOT OGRE_BUILD_PLATFORM_APPLE_IOS)

set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/OgreFramework.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++")
{'fraction_non_alphanumeric': 0.08946657663740716, 'fraction_numerical': 0.0, 'mean_word_length': 4.310035842293907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '313615', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1125, 'n_words': 142}