fixed testing and includes dir

This commit is contained in:
2025-01-29 11:24:17 -08:00
parent f57a440623
commit b3bee70aeb
4 changed files with 9 additions and 9 deletions

View File

@@ -19,9 +19,10 @@ struct tart_vec2 term_current_size() {
return ret;
}
#endif
#else
struct tart_vec2 term_current_size() {
struct tart_vec2 ret = {50,50};
return ret;
}
#endif

View File

@@ -3,10 +3,10 @@ set( CMAKE_CXX_STANDARD 11)
set( CMAKE_CXX_STANDARD_REQUIRED ON)
set( SOURCES
main.cpp
#test_tart.cpp
test_tart.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES} )
target_link_libraries(${PROJECT_NAME} TartLib)# PickleLib)
target_link_libraries(${PROJECT_NAME} TartLib PickleLib)
add_test(${PROJECT_NAME} "${CMAKE_SOURCE_DIR}/bin/testing.exe")

View File

@@ -1,8 +1,7 @@
#include "test_tart.h"
//#include <Pickler.h>
#include <Pickler.h>
int main (int argc, char *argv[]) {
// INSTALLSHELF;
tart_create_cell('t', '1', (struct tart_rgb){0,0,0}, (struct tart_rgb){0,0,0});
//tart_run(&__pickle_shelf__);
return 0;//PICKLESHELF;
INSTALLSHELF;
tart_run(&__pickle_shelf__);
return PICKLESHELF;
}

View File

@@ -1,5 +1,5 @@
#include <tart.h>
//#include <Pickler.h>
#include <Pickler.h>
bool rgb_test(struct tart_rgb* lhs, struct tart_rgb* rhs);
bool vec2_test(struct tart_vec2* lhs, struct tart_vec2* rhs);