Pierre Joye avatar Pierre Joye committed b6b1941

fix test build, missing gd_lib, TODO: run tests twice for static and shared builds (as they are done at the same time by default)

Comments (0)

Files changed (2)

tests/bmp/CMakeLists.txt

 
 FOREACH(test_name ${TESTS_FILES})
 	add_executable(${test_name} "${test_name}.c")
-	target_link_libraries (${test_name} gdTest)
+	target_link_libraries (${test_name} gdTest ${GD_LIB})
 	get_target_property(test_path ${test_name} LOCATION)
 	ADD_TEST(${test_name} ${test_path})
 ENDFOREACH(test_name)

tests/gdtest/CMakeLists.txt

 SET(GDTEST_TOP_DIR "${GD_SOURCE_DIR}/tests")
 CONFIGURE_FILE(test_config.h.cmake test_config.h ESCAPE_QUOTES)
 add_library (gdTest STATIC gdtest.c)
-target_link_libraries(gdTest ${GD_LIB_STATIC})
+target_link_libraries(gdTest ${GD_LIB})
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.