Closed aytey closed 3 years ago
Yeah, I have no idea why the test implementations go into psychecfe.{so,dll}
-- it probably makes sense this "doesn't work", because things like TestBinder
aren't dllexport
'd.
If you're happy, I can just if
out (in the top-level CMakeLists.txt) building the tests on Windows:
-set(PSYCHE_TESTS test-suite)
-add_executable(${PSYCHE_TESTS} ${PSYCHE_TESTS_SOURCES})
-target_link_libraries(${PSYCHE_TESTS} psychecfe psychecommon dl)
+IF (NOT WIN32 AND NOT MINGW)
+ set(PSYCHE_TESTS test-suite)
+ add_executable(${PSYCHE_TESTS} ${PSYCHE_TESTS_SOURCES})
+ target_link_libraries(${PSYCHE_TESTS} psychecfe psychecommon dl)
+endif()
This then successfully builds for me.
Thank you @andrewvaughanj !
Makes the changes as discussed here:
I should note that this still doesn't work though (it does create
cnip.exe
though!) due to link failures intest-suite.exe
:Signed-off-by: Andrew V. Jones andrew.jones@vector.com