
include(GoogleTest)

add_executable(MOM_tests
    MOM_tests.cpp
    test_AI_Evaluate_Continents.cpp
    test_AI_Stacks_Survey_Expedition_Forces.cpp
    test_BigBook_PageTurn.cpp
    test_Build_Dock_Linked_List.cpp
    test_Build_Land_Linked_List.cpp
    test_Reload_Melee_Sound.cpp
    test_Set_Gibs.cpp
    test_Clear_Gibs.cpp
    test_Ranged_Mouse_Image.cpp
    test_Update_Move_Map_City_Area_Restrictions.cpp
    test_Combat_Structure_Index.cpp
    test_NEWG_ClearLandmasses__WIP.cpp
    test_NEWG_SetBaseLands__WIP.cpp
    test_NEWG_TileIsleExtend__WIP.cpp
    test_TILE_SetLandMass__WIP.cpp
    test_River_Path.cpp
    test_Desert_Autotile.cpp
    test_Find_Shortest_Path.cpp
    test_Build_Connectivity_Graph.cpp
    test_Build_Connectivity_Graphs.cpp
    test_Animate_Oceans.cpp
    test_City_Maximum_Size_NewGame.cpp
    test_Init_New_Game.cpp
    test_Set_Upper_Lair_Guardian_Count.cpp
    test_Clear_Square_Scouted.cpp
    test_Square_Food2_NewGame.cpp
    test_STR_ListSeparator.cpp
    test_Create_Lair.cpp
    test_Generate_Lairs.cpp
    test_Generate_Home_City.cpp
    test_Map_Square_Is_Embarkable.cpp
 )

target_include_directories(MOM_tests PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${GTEST_INCLUDE_DIRS}
)

target_link_libraries(MOM_tests PUBLIC
    GTest::gtest
    GTest::gtest_main
    GTest::gmock
    momlib
    MOX
    STU
    Platform_Windowless
)

gtest_discover_tests(MOM_tests
    WORKING_DIRECTORY $<TARGET_FILE_DIR:MOM_tests>
)
