2013-02-03 19:03:36 +00:00
|
|
|
set(SRC_DIR ${colobot_SOURCE_DIR}/src)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${SRC_DIR}
|
|
|
|
${GTEST_INCLUDE_DIR}
|
|
|
|
${GMOCK_INCLUDE_DIR}
|
2013-06-16 19:39:21 +00:00
|
|
|
${CLIPBOARD_INCLUDE_DIR}
|
2013-02-03 19:03:36 +00:00
|
|
|
)
|
|
|
|
|
2013-03-27 22:48:44 +00:00
|
|
|
# Platform-dependent implementation of CSystemUtils
|
2013-06-24 11:28:18 +00:00
|
|
|
if(PLATFORM_WINDOWS)
|
2013-10-23 12:22:20 +00:00
|
|
|
elseif(PLATFORM_MACOSX)
|
|
|
|
set(ADDITIONAL_LIB "${X11_X11_LIB}")
|
2013-03-27 22:48:44 +00:00
|
|
|
else()
|
2013-04-20 17:41:39 +00:00
|
|
|
set(ADDITIONAL_LIB "-lX11")
|
2013-03-27 22:48:44 +00:00
|
|
|
endif()
|
|
|
|
|
2013-03-29 15:13:37 +00:00
|
|
|
add_executable(edit_test
|
2014-06-24 15:38:28 +00:00
|
|
|
${SRC_DIR}/app/gamedata.cpp
|
2013-03-29 15:13:37 +00:00
|
|
|
${SRC_DIR}/app/system.cpp
|
|
|
|
${SRC_DIR}/app/${SYSTEM_CPP_MODULE}
|
2013-11-20 09:39:06 +00:00
|
|
|
${SRC_DIR}/app/system_other.cpp
|
2013-03-29 15:13:37 +00:00
|
|
|
${SRC_DIR}/common/event.cpp
|
|
|
|
${SRC_DIR}/common/logger.cpp
|
|
|
|
${SRC_DIR}/common/misc.cpp
|
|
|
|
${SRC_DIR}/common/profile.cpp
|
|
|
|
${SRC_DIR}/common/iman.cpp
|
|
|
|
${SRC_DIR}/common/stringutils.cpp
|
|
|
|
${SRC_DIR}/graphics/engine/text.cpp
|
|
|
|
${SRC_DIR}/ui/button.cpp
|
|
|
|
${SRC_DIR}/ui/control.cpp
|
|
|
|
${SRC_DIR}/ui/edit.cpp
|
|
|
|
${SRC_DIR}/ui/scroll.cpp
|
|
|
|
stubs/app_stub.cpp
|
|
|
|
stubs/engine_stub.cpp
|
|
|
|
stubs/particle_stub.cpp
|
|
|
|
stubs/restext_stub.cpp
|
|
|
|
stubs/robotmain_stub.cpp
|
|
|
|
edit_test.cpp)
|
2013-04-11 11:37:15 +00:00
|
|
|
|
2013-04-20 17:41:39 +00:00
|
|
|
target_link_libraries(edit_test gtest gmock clipboard ${SDL_LIBRARY} ${SDLTTF_LIBRARY} ${Boost_LIBRARIES} ${ADDITIONAL_LIB})
|
2013-04-11 11:37:15 +00:00
|
|
|
|
|
|
|
|
2013-03-29 15:13:37 +00:00
|
|
|
|
2013-06-28 22:31:30 +00:00
|
|
|
add_test(edit_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/edit_test)
|